Closed marshonhuckleberry closed 4 years ago
The pywebcopy uses a inbuilt requests
library session which stores the
headers and cookies and all other data during all the requests.
You can customize this session before start to modify the user-agent or cookies or
headers etc.
import pywebcopy
pywebcopy.SESSION.headers['User-Agent'] = "your-custom-useragent"
pywebcopy.config.setup_config('http://google.com', '/path/to/downloads/', debug=True)
pywebcopy.save_webpage('http://google.com')
You can learn more about manipulation of requests
session from documentation.
how to change user agent?