Coder Social home page Coder Social logo

stack-overflow-scraping's Introduction

stack-overflow-scraping

a simple Python script that scrapes each question on StackOverflow along with the best answer

USAGE

git clone https://github.com/0ut0flin3/stack-overflow-scraping.git

cd stack-overflow-scraping

pip install -r requirements.txt

python app.py

Now the script will start extracting all the questions and their best answer and add them in a KEY/VALUE pair inside the data.json file. You can also stop the script and restart it later, it will start right where it left off since the last file contains the index of the last question scraped. Furthermore, since a dictionary is the place where the data is entered, there is no risk that the same question will be entered several times since dictionaries do not allow identical keys. Good scraping ❤️

P.S. it will work the same for any StackExchange site, you just need to change the url

HERE you can find already scraped questions using this script

stack-overflow-scraping's People

Contributors

0ut0flin3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.