c4software / python-sitemap

Mini website crawler to make sitemap from a website.
GNU General Public License v3.0
366 stars 110 forks source link

Add option to specify bot (user-agent) for robots.txt #89

Closed marshvee closed 6 months ago

marshvee commented 6 months ago

We want to add an option to run the script as a specific user-agent (Googlebot, for example), so it follows the specific rules for Googlebot instead of the general ones.

We allow this by add the flag user-agent:

python main.py --parserobots --user-agent Googlebot

Resolves #87

marshvee commented 6 months ago

Whenever you can check this too it would be great @c4software