https://github.com/rawnly/stackoverflow-autologin
Login to StackOverflow automatically
https://github.com/rawnly/stackoverflow-autologin
Last synced: 12 months ago
JSON representation
Login to StackOverflow automatically
- Host: GitHub
- URL: https://github.com/rawnly/stackoverflow-autologin
- Owner: rawnly
- Created: 2019-04-23T14:15:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T09:26:22.000Z (about 4 years ago)
- Last Synced: 2025-05-19T11:45:58.050Z (about 1 year ago)
- Language: Python
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StackOverflow Login
> A simple script to login into StackOverflow
## Why
When I started this little project the objective was reaching the "Enthusiast" badge on [StackOverflow][stack]
> Visit the site each day for 30 consecutive days. (Days are counted in UTC.)
It's just a simple web-scraper built on top of [`requests`][requests] and `beautifulsoup4`
## How to use
```sh
pip install -r requirements.txt
```
Right know the scraper supports custom notifications via Twilio and Discord.
You can setup the environment using ENV variables, names are pretty self explanatory:
- **STACKOVERFLOW_USERNAME**
- **STACKOVERFLOW_PASSWORD**
- PHONE_NUMBER
- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
- TWILIO_SENDER
- DISCORD_WEBHOOK_URL
NOTE: **BOLD** variables are required.
Otherwise if you're running it locally you can setup a config `toml` file ([example configuration](./example-config.toml)).
Filename can be customised via the env variable `CONFIG_FILE` (default is `config.toml`)
To run the script just execute the `main.py`
## Suggestion
I suggest to run a CI Job every day at the same hour. (Look at the [workflows](.github/workflows))
[requests]: http://docs.python-requests.org/en/master/
[stack]: https://stackoverflow.com/