Giter VIP home page Giter VIP logo

atg-round-3's Introduction

ATG-round-3

Task information:

  • It will be a continuation of your Second task.
  • Refer to the second shortlisting task, instead of CSV store those scraped data in a MySQL or PostgreSQL Database.
  • Here is a video of how to use MySQL with Python: https://www.youtube.com/watch?v=3vsC05rxZ8c
  • Make a short video explaining and running the task in <10mins. Don't need to show long-running codes.
  • Upload your code to a GitHub public repository
  • Submit the video and the GitHub link for the same in the submission form

Setup

  1. Set up config.ini as per requirements for the MySQL database.
  2. Simply install the required libraries.
pip install -r requirements.txt

Maintaining a virtual environment is recommended.

Running The Code

To run the code simply run the following.

python main.py

Once the output is ready, it will be stored in a database called twitterbase in table users. You can use list.py to list the entries.

Bonus: Multiprocessing. Even with MySQL! Scraping runs on multiple processes. This creates a much more scalable result.

Methodology

  1. Analysis of required data.
  2. Building a basic pipeline for scraping.
  3. Testing if the current scraping pipeline works (see test.ipynb).
  4. Application of the pipeline (see scraper.py).
  5. Deployment.

atg-round-3's People

Contributors

s-mv avatar

Watchers

 avatar

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.