Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thepushkarp/automate-ccc-reports
Automate and simplify the process of making reports of contests hosted by the IIITV CodeChef Campus Chapter
https://github.com/thepushkarp/automate-ccc-reports
campus-chapter codechef contests posts reports
Last synced: about 2 months ago
JSON representation
Automate and simplify the process of making reports of contests hosted by the IIITV CodeChef Campus Chapter
- Host: GitHub
- URL: https://github.com/thepushkarp/automate-ccc-reports
- Owner: thepushkarp
- License: mit
- Created: 2019-06-28T11:28:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-01T02:56:42.000Z (over 1 year ago)
- Last Synced: 2023-04-01T04:14:54.066Z (over 1 year ago)
- Topics: campus-chapter, codechef, contests, posts, reports
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 9
- Watchers: 0
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Automate-CCC-Reports
Automate and simplify the process of making reports of contests hosted by IIITV CodeChef Campus Chapter
### Inspiration 💡
The work of creating CodeChef contest reports after the contest is rather boring and repetitive. One needed to open the contest page and copy-paste the content to make a post of the contest report for Social Media. As this work could be automated using web scraping, I decided to make this script.
This repository can be used for making the contest report of any other contest (except Long Chllenges, Cook-Offs and Lunchtimes and other such contests for now) by changing the template as per requirement.
## How to Use? 😀
**Running this script requires Google Chrome to run Selenium. Make sure to [have Google Chrome installed](https://www.google.com/chrome/) before going to the next steps.**
- Clone the repository `$ git clone https://github.com/thepushkarp/Automate-CCC-Reports.git`
- Create a virtual environment ([click here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) to learn about Virtual Environment)```sh
virtualenv env
```- Activate virtual environment (On macOS and Linux)
```sh
source env/bin/activate
```- Activate virtual environment (On Windows)
```sh
.\env\Scripts\activate
```- Install requirements
```sh
pip3 install -r requirements.txt
```- Download the version of Chrome Driver as per your Google Chrome version from http://chromedriver.chromium.org/downloads
- Add the path of the downloaded Chrome Driver to line no. 31 of [scrape.py](scrape.py)
- Run the script using `python3 post_gen.py` and enter the contest link, and the contest type in the prompt that follows. The posts generated would be saved in the `posts` folder.
**NOTE: All the scripts are written in Python 3. So, make sure to use the appropriate version of pip and python.**
## Known Issues
- On **some** contest pages, there may be empty tags in-between strings (like empty \ tags between '3' and 'hours' in contest duration) due to which insted of '3 hours', it may save only '3' in the duration variable.
## License
[MIT License](LICENSE)
---
Made with ❤ by Pushkar Patel