inactivist / robot-detection Goto Github PK
View Code? Open in Web Editor NEWMy fork of robot-detection (http://www.celtic-knot-creator.com/robot-detection/)
License: GNU General Public License v3.0
My fork of robot-detection (http://www.celtic-knot-creator.com/robot-detection/)
License: GNU General Public License v3.0
# robot_detection robot_detection is a python module to detect if a given HTTP User Agent is a web crawler. It uses the list of registered robots from http://www.robotstxt.org: (Robots Database)[http://www.robotstxt.org/db.html) ## Usage There is only one, function, ``is_robot`` that takes a string (unicode or not) and returns True iff that string matches a known robot in the robotstxt.org robot database ### Example >>> import robot_detection >>> robot_detection.is_robot(user_agent_string) ## Updating You can download a new version of the Robot Database from (this link)[http://www.robotstxt.org/dbexport.html]. Download the database dump, and run the file ``robot_detection.py`` with the file as first argument. $ wget http://www.robotstxt.org/db/all.txt $ python robot_detection.py all.txt If the database has changed, it'll print out the new version of ``robot_useragents`` variable that you need to put into the source code. ## Tests Some simple unittests are included. Running the ``tests.py`` file will run the tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.