How You Get Readymade Python from chatGPT - After a Few Tries π
Can you give me some python code which can be executed from the command line as python3 script.py URL DOMAIN Where the URL argument is a link to a web page (url) and the DOMAIN argument is a domain name such as blogger. What the script will do is dump out the links on the page (referred to by the url argument) which contain the domain DOMAIN. Sure! ... but, that dumped out all links. Can you give me some python code which can be executed from the command line as python3 script.py URL DOMAIN Where the URL argument is a link to a web page (url) and the DOMAIN argument is a domain name such as blogger. What the script will do is dump out the links on the page (referred to by the url argument) which contain the string DOMAIN between periods (whole word). No buenoπ When I ran as python3 links.py url blogspot, it dumped out as many blogspot.com (that's it, per line) as there were links.. That didn't work, we want to get the page referenced by URL and the d...