Day069 — web scraping related stuff
2 min readApr 22, 2019
Here is the list of things I learn during the development of a web scraper using Selenium.
if-then-else statement in one line:
Extract element by matching text:
Get parent node from child node in XPath::
Find closest preceding ancestor node :
Check which OS:
if platform.system() == "Darwin":
use "Command"
else:
use "Control"
Sometimes clear() does not work, use “control +a, Delete”:
Check empty string:
if not myString:
do something