Giter Club home page Giter Club logo

pythonwebscraper's Introduction

Python Web Scraper

Fast Web Scraper for Python

This project is made for automatic web scraping to make scraping easy. It gets a url or the html content of a web page and a list of sample data which we want to scrape from that page. This data can be text, url or any html tag value of that page. get similar content or the exact same element of those new pages.

in this we have 2 types of Scraper

  1. API Scraper
  2. Website Scraper

Installation

It's compatible with Python 3

install this repository using this pip command

pip install git+https://github.com/itsRajatkumar/PythonWebScraper

or clone repository using this command

git clone https://github.com/itsRajatkumar/PythonWebScraper

WebSite Scrapping

install all required python library using pip

csv for saving data in csv file

pip install csv

BeautifulSoup for parse html document

pip install beautifulsoup4

Selenium is a powerful tool for controlling web browsers through programs and performing browser automation

pip install selenium 

after installation of all library change url of wbsite that you want to scrape

place all of the tag name in correct order and place

  1. enter main container class or tag name that contains all desired data.
  2. Enter subcontainer class or tag name that contains each single data
  3. Enter the tag name that contains the actual data

after this run pyton file:

python pyscraper.py

API WebScraper

install all required python library using pip

csv for saving data in csv file

pip install csv

requests for handling api requests

pip install requests

after installation all required libbrary put api url in url path add all headers correctly and all params value

add all keys and values properly to get data

and then run python file

apiScraper.py

python apiScraper.py

After success full Run you will get an CSV file that contains all data in csv formet.

pythonwebscraper's People

Contributors

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