Screen Scraping with Python

 

at dos command enter pip.exe install pyautogui

 

https://www.mapbox.com/navigation/ mapping API

 

https://docs.mapbox.com/api/navigation/#directions

https://leafletjs.com/examples/quick-start/

https://leafletjs.com/examples/quick-start/example.html

 

https://realpython.com/python-basics/

https://realpython.com/python-web-scraping-practical-introduction/

https://realpython.com/python-virtual-environments-a-primer/

https://realpython.com/python-first-steps/

 

https://scrapy.org/ May be better than https://www.crummy.com/software/BeautifulSoup/

 

https://mazzanet.net.au/cfa/pager-cfa-all.php

 

 

Start Power Shell and install beautifulsoup4->bs4

pip install bs4

python

>>> import bs4

>>> from urllib.request import urlopen as uReq

>>> from bs4 import BeautifulSoup as soup

 

 

 

The code scrape_example_002

 

 

 

Search for a string in python

SearchMe = "The apple is red and the berry is blue!"  
print(SearchMe.find("is"))  
print(SearchMe.rfind("is"))  
print(SearchMe.count("is"))  
print(SearchMe.startswith("The"))  
print(SearchMe.endswith("The"))  
print(SearchMe.replace("apple", "car") 
  .replace("berry", "truck"))

 

Python cheat-sheet

working with images in Python

Pasting an image on another image