Sep 1, 2024 12:31 PM
(This post was last modified: Sep 1, 2024 04:30 PM by Py_Dev.)
CPA Automation Tool - Coming Soon..
I am glad to share a tool I have been working on. This tool is supposed to automate most of the activities involved in CPA. The tool is a Python-based application which uses PyQt5 as its GUI and Selenium WebDriver for automation of interactions with web advertisements. Here is an overview of some of the features and functionalities that it possesses:
What is this thing?
CPA Automation Tool automates the process of interaction with web ads on a specified website. It uses proxies so that each click appears unique, helping a user in managing click activities in an organized manner. The tool is developed to have a friendly GUI for easy configuration and monitoring of the process.
Features
GUI Configuration:
- Website URL: Specify the website URL on which you would want this tool to perform its operation.
- Proxy List: Attach herein a text file containing a list of proxies to be used during the session.
- Click Limit: Set a limit on the number of clicks to perform.
- Sleep Time: Set sleep time between interactions to simulate the human use of it.
- Headless Mode: Whether the browser should be run in headless mode. It is for operating better with no GUI. (Still in development)
- Ad Selector: The CSS selector to find an ad on the page
- Automate Interaction:
![[Image: 0sf23CL.png]](https://i.imgur.com/0sf23CL.png)
![[Image: TsVHjIx.png]](https://i.imgur.com/TsVHjIx.png)
- Proxy Rotation: Skips through a list of proxies to make the requests seem more varied.
- Click Automation: It clicks on random ads up to the limit.
- Page Interaction: It waits for the page to load and then scrolls all the way to the bottom and interacts with the ads.
Status Updates: Get real-time status about the progress of automation.
- Proxy Status: Know what proxy is in use at any time.
- Stats: To show statistics like how many pages were visited, how many clicks were successful, the click-to-visit ratio. Error Reporting: Error messages are to be displayed for debugging purposes.
- How It Works Initialization: The CPAAutomation class shall create the GUI and prompt the user for the details required.
- Configuration: User is to provide the website URL to be visited, the list of proxies, how many clicks, etc.
- Execution: Browser automation is actually performed by the CPAWorker thread. It switches between proxies, performs the clicking, and updates the status and statistics back to the GUI.
- Error Handling: All the issues detected during automation are sent back to the user via GUI.
Code Structure
Application has two main classes:
- CPAAutomation: responsible for management of GUI and user inputs.
- CPAWorker: does all background automation tasks, such as browsing, clicking ads, and statistics updates.
Dependencies:
- PyQt5
- Selenium
- ChromeDriver
Whats next?
Please feel free to comment on how I can improve this script. I am looking into using mutliple web browsers as of right now it is just using google chrome portable. If I rotate in other portable browsers, it will really look like the real thing!



