As an additional information, a very simple example :
- In a terminal, run (from a folder where there are some files):
python -m SimpleHTTPServer
- In another terminal, run this script to download all the resources:
from pybots import HTTPBot
with HTTPBot("localhost") as bot:
bot.get()
for link in bot.soup.find_all("a"):
bot.retrieve(link.attrs['href'])
Remco Boerma
CTO@NPO, python dev, dba
Nice. I'd love to see a client-server combination. So maybe a flask website, or a general website to interact with. Mostly thought it would be to handle incoming traffic instead of outgoing traffic. Could you post an example?