I coded a web app that tracks Amazon prices using ChatGPT and Python and in this video, I’l show how to do all of this from scratch!
- Install flask: pip install flask
- Code: https://github.com/ifrankandrade/amazon-price-tracker/tree/main/amazon-price-tracker
- Scrape any website with ChatGPT (Tutorial): https://youtu.be/GapR6gIIHDs
- Exact prompt I used: Create a web app using Flask. The app.py should have 2 main functions search and results. The search function will render a search HTML page. The results function will render a results HTML page with a list of products in data frame format that will be obtained by calling the function extract_data that uses the inputs "keyword", and "number of pages" and also the "current date" (%Y%m%d%H) obtained from the datetime module. However if the user only introduces the input "filter by price" (min price, max price) and "filter by name" the products variable should read a CSV called price_change.csv and then use pandas to filter the price and name of the products. Note: The inputs "keyword", "number of pages”, "filter by price" and "filter by name" are optional, so the use may introduce them or not
My Free Cheatsheets
==================
???? Python Automation: https://frankandrade.ck.page/44559e1ae7
???? Python for Data Science Cheat Sheet: https://frankandrade.ck.page/26b76e9130
???? R for Data Science: https://frankandrade.ck.page/7b621bc82c
????️ SQL for Data Science:https://frankandrade.ck.page/f2fbbdc6db
???? Web Scraping: https://frankandrade.ck.page/ca38420833
???? My eBook “Code Less Earn More”: https://frankandrade.ck.page/3b520320ac
Social Media
===========
???? Discord: https://discord.gg/6xyQaj8bJK
???? LinkedIn: https://www.linkedin.com/in/thepycoach/
???? Twitter: https://twitter.com/ThePyCoach
✏️ Medium: https://frank-andrade.medium.com/
???? GitHub: https://github.com/ifrankandrade
My Courses
==========
???? Join My Automation Course in Python: https://www.udemy.com/course/automate-your-life-with-python/?referralCode=7FA8B361D7A92B03A8C3
???? Join My Python for Data Science Bootcamp: https://www.udemy.com/course/python-for-data-science-bootcamp-2022-from-zero-to-hero/?referralCode=649B94757CB7A3A4756F
???? 8-hour Web Scraping Course in Python: https://www.udemy.com/course/web-scraping-course-in-python-bs4-selenium-and-scrapy/?referralCode=291C4D7FF6F683531933
???? Make money using your Programming & Data Science skills: https://codelessearnmore.teachable.com/p/make-extra-income-writing-as-a-programmer-or-data-scientist
Support My Work
==============
???? PayPal: https://www.paypal.com/donate/?hosted_button_id=FV6C563QKSYGS
--------------------
Content:
Intro 0:00
0:26 Project Structure
2:50 HTML
4:29 CSS
5:23 Scraping data
9:20 Debugging with ChatGPT
10:53 Testing
11:20 Final debugging
12:14 Final App
Disclaimer: Web scraping is prohibited
on most websites by their TOS. This video
is only for educational purposes . Please
do not use this in any harmful way.