GithubHelp home page GithubHelp logo

zehan-alam / web-scraping--gsmarena Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 147 KB

Web Scraping GSMarena to extract smartphone specs with their ratings

Python 100.00%
beautifulsoup4 file-handling-in-python pandas proxies python web-scraping

web-scraping--gsmarena's Introduction

Smartphone Specifications Scraping from GSM Arena

This project utilizes Python's BeautifulSoup library to extract smartphone specifications from GSM Arena. The step-by-step process is as follows:

  1. scrap_brand_links.py: Extracts all brand links from the website and saves them in brand_links.txt.

  2. scrap_phone_links.py: Iterates through brand links and finds phone links, including paginations, saving them in phone_links.txt.

  3. ip_generator.py: Collects IP addresses from https://sslproxies.org/ and stores them in ip_addresses.txt for potential proxy usage in the scraping process to avoid blocks.

  4. csv_generator.py: Creates specs.csv file for storing the scraped data. Run this if you need to reset the CSV file and start fresh.

  5. scrap_specs.py: Goes through phone links, collects specifications data, and ratings. Utilizes proxies to avoid potential IP blocks. Resumes from where it left off if a proxy is blocked.

Note: You can customize the brands to scrape in scrap_specs.py to select specific brands rather than scraping all.

For the detailed project code and implementation, refer to the relevant scripts in the repository. Please ensure proper usage of proxies and adhere to the website's terms of use while scraping data.

web-scraping--gsmarena's People

Contributors

zehan-alam avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ekowtaylor

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.