Posts

Showing posts from July, 2023

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...

Python Trouble - Your Freelancer Wants to Use a Module Without Telling You 😊

Suddenly, sqlalchemy holds your script hostage.     from sqlalchemy import false ModuleNotFoundError: No module named 'sqlalchemy' Try: pip3 install sqlalchemy   WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:997)'))': /packages/cc/c2/d3ee8842450ad01a8128e8fcb66947ab39b02a31e6d75205374c2439a606/SQLAlchemy-2.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/cc/c2/d3ee8842450ad01a8128e8fcb66947ab39b02a31e6d75205374c2439a606/SQLAlchemy-2.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC...