Skip to main content

Fetch web pages as robot

Project description

fetchas

Fetch URLs as search engine robot ("fetch as")

Show content or headers of a given URL with the HTTP "User-Agent" header set to a search engine robot. Defaults to Googlebot.

Online help:

usage: fetchas [-h] [-r] [-I] [-a ROBOT_AGENT] url

Fetch URLs as search engine robot.

positional arguments:
  url

optional arguments:
  -h, --help            show this help message and exit
  -r, --follow-redirects
                        Follow redirects, if any occur
  -I, --headers         Show only response headers
  -a ROBOT_AGENT, --robot-agent ROBOT_AGENT
                        ROBOT_AGENT should be one of the following values
                        (default: 'googlebot'): default, desktop, googlebot,
                        mobile, googlebot-mobile, googlebot2, bingbot,
                        bingbot-mobile, browser, iphone, pixel

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fetchas, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size fetchas-0.2-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fetchas-0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page