1point3acres.com forum auto sign script
Cannot bypass this verification code, working on it right now.
You don't get any points, but nor do you lose any points since it will log in for you everyday.
This script is still helpful, maintaining your current points!
- Python3
- Chrome && chromedriver
- Selenium
- Linux (Use raspberry pi 4 for demo)
- Auto sign for you to get one forum point every day
- Send the account summary to your email, give you an idea of how many points you have in total:dog:
- Save the screenshot of the forum news for you. (totally useless but I still did it)
- Keep the logging information in example.log under the same folder. If there is errors or exceptions, you can check it here
- Install Python3 (3.7+) to your Linux
- Install selenium, fake_useragent
pip3 install selenium
pip3 install fake_useragent
- Install chrome and chromedriver
- If you are using raspberry pi 4, the default chromium browser is fine. We just need to download armhf version of chromedriver.
Double click the deb file.The chromedriver would be registered in environment variable.
- If you are using x86 Linux, first download chrome browser, second find the related x86 version of chromedriver.
sudo dpkg -i packagename to have chromedriver installed into /usr/bin
does produce error messages BUT chromedriver install succeeds! 4. Download the project
git clone https://github.com/minweny/1p3a_auto_sign.git
cd 1p3a_auto_sign/
Your folder starts with one python file
5. In the same folder, create accounts.json
Fill in your 1point3acres.com account and password.
You can have multiple accounts, separated by comma.
[
{
"account": "",
"password": ""
}
]
- In the same folder, create email.json
Fill in your account and password for Gmail, and the email address that you want to receive the notification.
Note: You may need to disable some security settings in Gmail
{
"senderGmailAccount": "***@gmail.com",
"senderGmailPass": "",
"receiver": "***@***.com"
}
After step 5 and 6, you would have:
7. Open your linux terminal, run the python script.
python3 1p3a.py
Test If you can receive the email about your forum points.
8. Add "python3 1p3a.py" to your crontab. Make it run once a day or more.
Open bash terminal
crontab -e
Add following setences
# execute the python script every day at spefic time
0 8,12,16,20 * * * cd /home/pi/1p3a_auto_sign/ && /usr/bin/python3 1p3a.py
- Modify 1p3a.py. Then you won't receive too many test emails.
change the first line from
testMode = True
to
testMode = False
- give py file permission, or the crontab won't work(doesn't matter?)
chmod 777 1p3a.py
- If you don't receive emails and find errors in example.log Error: The process started from chrome location /usr/bin/chromium-browser is no longer running change to headless mode
uncomment 44th line
change it from
# options.add_argument('--headless')
to
options.add_argument('--headless')
You would find example.log and image.png under your current folder
Logging file / example.log
Screenshot / image.png