2018-11-24

Tinker Time Log

//Updated Productivity Scripts

To keep memories of things, all logs from "moment of the day", "family
activities" and "personal initiative" will be posted to the perfect
day blog.
_This is automated via a Zap that looks for the label "Blog".
_The card description becomes the title, the latest comment becomes the post.

To keep work synced between master boards and my personal board, new
syncs have been added.
_Any comments on personal board card will be mirrored to the relevant
master board card. This is done via butlerbot finding the card in the
"Mirror" checklist
_When a card on the personal board is moved to done, the relevant
master board card will be moved to done as well. This is done via
butler finding the cards in the "Mirror" checklist.


///Automating the Boring Stuff

-Completed lesson on web scraping using 2 modules: BeautifulSoup, Requests
- code is hosted on Repl.It :
https://repl.it/@LennardOng/AutomateTheBoringStuff-parse-amazon
- problem getting the CSS pointer because am using iPad
- reference: Section 13 Lesson 40 via Udemy course

..............
import requests, bs4

getAmazonPrice(productUrl):
#create object from website using reqests module
res = requests.get(productUrl)
res.raise_for_status() #this will flag any errors

#create soup object from request
soup = bs4.BeautifulSoup(res.text, 'html.parser')
elems = soup.select('')
return elems[0].text.strip()
..............