Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

StackOverflow Questions Scraper

In this repository we will scrap all the latest questions, votes, views and tags from StackOverflow website & store the result in a JSON format

Requirements

  1. Python 3
  2. Libraries - beautifulSoup4, requests, json
  3. Google Chrome
  4. Text Editor/IDE

How to use ?

Step 1 : Install Python 3 from Python Offical Website

Step 2 : Install libraries like - beautifulsoup4, requests and json through commandline.

pip install beautifulsoup4

pip install requests

Step 3 : Open your text editor, then use the code in file stackoverflow.py by which we are extracting the data & storing it in JSON (JavaScript Object Notation) file.

Step 4. Open your Command Prompt/terminal & then execute this, it will take few seconds -

>> python stackoverflow.py

Step 5. Whoop !! we have scraped the data from stackoverflow website and new JSON file is created in which we can see results.

scrapped_data.json

Step 6. You are now having resultant data which you verify on JSONLint to check validity of data & can use it in your projects to build applications.

JSON Output -

Output

Want to contribute ?

Feel free to add more features in this projetct. If you find out any bug let me know 👍

About

In this repository we will scrap all the latest questions from StackOverflow website and store the result in JSON format in a file

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages