Tag: requests with python

Coding

“Python Learning: Automate Boring Stuff with Python | Chapter 11 : My Solution to Image Downloader from Imgur

So you want to download images without a browser..  challenge accepted 3:43:41 PM   [sourcecode language=”python”] #Image Site Downloader #USAGE: python igmurdownloader.py <category> <limit> import sys, requests, os, logging, bs4, re logging.basicConfig(level=logging.DEBUG, format="%(asctime)s – %(levelname)s – %(message)s") logging.disable(logging.CRITICAL) if len(sys.argv) == 3: logging.info("Command line argument 3") #TODO: get category, and limit category = sys.argv[1] limit = […]

Coding

“Python Learning: Automate Boring Stuff with Python | Chapter 11 : My Solution to Comic Downloader

Downloading a comic…. 9% 12:39:32 PM There is a solution provided in the book but this is my way of going around the task   [sourcecode language=”python”] #comic saver – saves each post of a comic page #USAGE python comic.py <url> import logging, requests, bs4, os, sys logging.basicConfig(level=logging.DEBUG, format=" %(asctime)s – %(levelname)s – %(message)s") #TODO: get […]