Coder Social home page Coder Social logo

thepushkarp / automate-ccc-reports Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 2.0 38 KB

Automate and simplify the process of making reports of contests hosted by the IIITV CodeChef Campus Chapter

License: MIT License

Python 100.00%
codechef posts reports campus-chapter contests

automate-ccc-reports's Introduction

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 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 to learn about Virtual Environment)
virtualenv env
  • Activate virtual environment (On macOS and Linux)
source env/bin/activate
  • Activate virtual environment (On Windows)
.\env\Scripts\activate
  • Install requirements
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

  • 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 <strong> 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


Made with โค by Pushkar Patel

automate-ccc-reports's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar thepushkarp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

automate-ccc-reports's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.