A simple-tasked web scraper hosted on Heroku
Created December 2020
Python
Heroku
Discord
Requests
Json
- Overview
- Environment
- Design
- Results
- Gets Chrome webdriver with Selenium
- Uses webdriver to open url
- Fetched title with webdriver attribute
- Writes title with timestamp to json file
- Sends webhook via Requests POST to discord channel
This Heroku app utilizes the Python Requests library to retrieve the contents of a specified url. The received response will be parsed using
This simple heroku app will serve the functionality of scraping the title of nike's website, saving it in a json file, and sending it to a discord server via webhook. The process includes scraping the page source with selenium, using beautiful soup to parse the html, and thus extracting the title.
This practice repository is the elementary concept behind Pat-Potbot
The discord bot will be async