linux_wiki:amazon_product_page_checker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_wiki:amazon_product_page_checker [2014/11/30 22:41]
billdozor created
linux_wiki:amazon_product_page_checker [2019/05/25 23:50] (current)
Line 1: Line 1:
 ====== Amazon Product Page Checker ====== ====== Amazon Product Page Checker ======
-Goal: Automatically check an Amazon product page for certain information. (Availability, price, etc) 
  
-Prerequisite: +**General Information**
-  You can send e-mail from the command line: [[ Send Email via Gmail SMTP Cmd Line ]]+
  
-==== Prep Work: Web Browser ====+Automatically check an Amazon product page for certain information. (Availability, price, etc) 
 + 
 +**Checklist** 
 +  * Distro(s): Any 
 +  * Other: You can send e-mail from the command line: [[ Send Email via Gmail SMTP Cmd Line ]] 
 + 
 +---- 
 + 
 +===== Prep Work: Web Browser =====
  
 1) In a web browser, visit the Amazon.com product page you want to auto check and save the URL. 1) In a web browser, visit the Amazon.com product page you want to auto check and save the URL.
Line 22: Line 28:
     * Select the string to the right of "User-Agent" and copy/paste it somewhere else for later use.     * Select the string to the right of "User-Agent" and copy/paste it somewhere else for later use.
  
-==== Testing Curl and Grep ====+---- 
 + 
 +===== Testing Curl and Grep =====
  
 1) Using the collected product page URL and user agent string, test a curl against the page. 1) Using the collected product page URL and user agent string, test a curl against the page.
Line 46: Line 54:
     * Using this logic, if the item became available to buy, that statement would not return any result.     * Using this logic, if the item became available to buy, that statement would not return any result.
  
-==== The Script ====+---- 
 + 
 +===== The Script =====
  
 Putting the above curl statement into a working script looks like this: Putting the above curl statement into a working script looks like this:
Line 71: Line 81:
   * Do nothing else if the string is still there.   * Do nothing else if the string is still there.
  
-==== Auto Check it with Cron ====+---- 
 + 
 +===== Auto Check it with Cron =====
 Don't forget create the cron entry to have the script execute every 15 mins or so. Don't forget create the cron entry to have the script execute every 15 mins or so.
  
  • linux_wiki/amazon_product_page_checker.1417405313.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)