Git Product home page Git Product logo

web_scrapper's Introduction

Web Scrapper

๐Ÿ” Jupyter Notebook to scrap the data from website.

Status: ๐Ÿš€ Finished

About โ€ข Tech Stack โ€ข Contact

About

This Jupyter Notebook uses BeautifulSoup to scrap the valuable data from the website and convert it into useful .CSV files. It also update the readings of data after every given time of interval

Tech Stack

python Badgeย 

Web Scrapper

Web Scrapper brushes the valuable data from the websites into useful .csv files

How to use this Jupyter Notebook ?

Change the link in the URL section to your desired webpage

URL = 'Your link here'

Use the Link headers to get the header of your computer.

http://httpbin.org/get

Screenshot (36)

Page jsut like above picture will appear. Paste the highlited text in the header section

headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.3

Look out for the data you want to get and copy the Span id, the span class or the div class into title and price section

title = soup2.find('span',{'class':"B_NuCI"}).get_text()

price = soup2.find('div',{'class':'_30jeq3 _16Jk6d'}).get_text()

Screenshot (37)

Now for creating the .CSV file. Run below code and replace the file name as per your preferrence.

import csv 

header = ['Title', 'Price', 'Date']
data = [title, price, today]


with open('NothingPhone1Datascrapper.csv', 'w', newline='', encoding='UTF8') as f:
    writer = csv.writer(f)
    writer.writerow(header)
    writer.writerow(data)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Contact

Made with โค๏ธ by Dharmesh Kashyap, get in touch!

Email Badgeย  LinkedIn Badgeย 


web_scrapper's People

Contributors

dharmesh-kashyap 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.