Basically I have installed an auto page refresher on safari. And i have 5 safari windows auto refreshing every 30 sec. My goal is to use python to get a list of all the open web pages . I am using this to do it
import appscript urls = appscript.app('Safari').windows.tabs.URL() urls
this returns a list of open tabs with the uls. Next thing is to fetch the source code of all these open tabs and save it to txt or html and then finally use python to match a string on the webpage to get to the data i want.
Question >> How do i get the page source of the already open webpages and save them to txt or html ? can this be done using appscript or some other module ?
Aucun commentaire:
Enregistrer un commentaire