Giter Club home page Giter Club logo

pythonwebpagescrapperapp's Introduction

PythonWebPageScraperApp

This Python-based web scraping application uses Selenium with Microsoft Edge WebDriver to scrape content from the official Python website. It runs in headless mode for efficiency and ease of use in various environments, including cloud platforms.

Description

The app navigates to the "About" and main page of python.org and extracts all headings and paragraphs, saving them to text files. This can be useful for a variety of purposes, such as content aggregation, analysis, or offline reading.

Setup

To run the scraper, ensure Python is installed on your system along with the required packages. The application uses the Edge WebDriver, managed automatically through webdriver-manager, simplifying the setup process.

Prerequisites

  • Python 3
  • Selenium
  • Microsoft Edge browser
  • webdriver-manager for handling the Edge WebDriver

Installation

1.Install the necessary Python packages:

pip install -r requirements.txt

Usage

To run the scraper:

python main.py

this will execute the script and create 3 text files: scraped_about_page.txt and scraped_home_page.txt, and scraped_conduct_page.txt, containing the scraped content from the respective pages.

Please ignore error:

[24364:16552:1218/192301.989:ERROR:policy_logger.cc(156)] :components\enterprise\browser\controller\chrome_browser_cloud_management_controller.cc(161) Cloud management controller initialization aborted as CBCM is not enabled. Please use the --enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.

DevTools listening on ws://127.0.0.1:3768/devtools/browser/3cbbd6b3-b6d1-4ca3-889d-1d60c70e1b28

as they are more warnings than critical errors and are related to enterprise policy management features which are likely not relevant to the use case of this project sample.

pythonwebpagescrapperapp's People

Contributors

leelee-00 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.