A RenRen fortune collector
Believe it or not, my wife is still obsessed with the login streak on RenRen. She will be unhappy if I forget to login and collect RenRen fortune. Most of the time, let alone when you travel, it's hard to remember. So I have to improvise.
- Consider logging in and clicking the button a UI test
- Have GitHub Actions run a daily build to trigger that test
Assuming you have access the following services
- A RenRen account
- A GitHub account
- A Rollbar account (lazy error tracking)
- Create a new project
- Markdown the project access token with
post_server_item
scope
- Fork this repo
- Set the environment variables on
Settings > Secrets > Repository secrets
- rollbar: Rollbar project access token
- email: RenRen email
- password: RenRen password
All set!
Export credentials
export email="..."
export password="..."
export rollbar="..."
Run test
cd rrfortune
python -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements-dev.txt
seleniumbase install chromedriver
pytest --headless