Code Monkey home page Code Monkey logo

dms-codes / scrape-stei-itb-ac-id Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Web Scraping with Python This Python script performs web scraping on a website to extract links, emails, and WhatsApp links from the specified domain (stei.itb.ac.id). It uses the requests library to fetch web pages and BeautifulSoup for parsing HTML content.

Home Page: https://github.com/dms-codes/scrape-stei-itb-ac-id

Python 100.00%
itb python stei webscrape webscraper

scrape-stei-itb-ac-id's Introduction

Web Scraping with Python

This Python script performs web scraping on a website to extract links, emails, and WhatsApp links from the specified domain (stei.itb.ac.id). It uses the requests library to fetch web pages and BeautifulSoup for parsing HTML content.

Usage

  1. Ensure you have the required libraries installed:

    pip install requests beautifulsoup4
  2. Modify the script to specify the target domain (DOMAIN), home URL (HOME_URL), and other settings as needed.

  3. Run the script:

    python script.py
  4. The script will perform the following actions:

    • Visit the home URL (HOME_URL) and extract all links from the specified domain (DOMAIN).
    • Collect email addresses (mailto: links) and WhatsApp links (api.whatsapp.com).
    • Save the extracted data to separate log files (scrape-links-stei.log, scrape-email-stei.log, scrape-whatsapp-stei.log).
  5. The script will recursively follow links within the specified domain to gather additional URLs.

  6. The extracted links, emails, and WhatsApp links will be saved in their respective log files.

Customization

  • You can modify the HOME_URL, DOMAIN, TIMEOUT, or other settings in the script to target different websites or adjust the scraping behavior.

  • To specify a different starting URL, change the value of HOME_URL in the script.

Output

  • Extracted links from the specified domain are saved in scrape-links-stei.log.
  • Extracted email addresses are saved in scrape-email-stei.log.
  • Extracted WhatsApp links are saved in scrape-whatsapp-stei.log.

License

This script is provided under the MIT License.


Please adapt the script and README.md to your specific use case or requirements.

scrape-stei-itb-ac-id's People

Contributors

dms-codes 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.