Skip to main content

No project description provided

Project description

RobotsTxt

Description

The project is a robots.txt parser. The parser is written in Python, easy to use and has small improvements for typos. The project is open source and encourages contributions and ideas for improvements.

Usage

The usage of the package is simple. first you have to init the parser.

USER_AGENT = "GOOGLEBOT"
RobotsTxt_TheHunterDog.initRobotsTxt(USER_AGENT, robots_txt_url = "https://www.google.com/robots.txt")

when it has been initailized the allowed and disallowd list has been parsed and stored. Each get request must be checked against the list. this is being done with the built in make get request function.

RobotsTxt_TheHunterDog.main.makeRequest("https://www.google.com")

The user agent that has been initailized will be used for each get request made using the function.

Contributing

Pull requests are welcome, for major changes please open an issue first to discuss what you would like to change. Issues are also welcome to report bugs, request features or suggest improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

robotstxt_thehunterdog-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotstxt_thehunterdog-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file robotstxt_thehunterdog-0.0.4.tar.gz.

File metadata

  • Download URL: robotstxt_thehunterdog-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for robotstxt_thehunterdog-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8274bafa1ecf954611540c2c8f3a91728879014dda7c50fff85838e8b73080d5
MD5 1144e6502e4c248c8c90ea4f187d2335
BLAKE2b-256 92f95765a6506f5b93fee719af96769a1dd09b238c4be10bab8493ba00fddf33

See more details on using hashes here.

File details

Details for the file robotstxt_thehunterdog-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for robotstxt_thehunterdog-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 040940de3dfdc1e3c2f6d2f64629822f2e1f0842430cc398e507ca3af2aa979b
MD5 2534b874caffab564b6432099e349d00
BLAKE2b-256 1830b2222c00ddae7fabf2e2ffd0db597e1fd8c2b0c20a7b7be5f6be76929d84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page