Repository navigation
Releases
2.0.0
Breaking: identify now describes every user agent and returns a dict for browsers too, with bot telling the two apart. Keys without a value are left out.
- Browser identification from
browsers.json:browser,engine,oswith versions,device,brand,model,cpuandlanguages, checked against a 644 user agent gold set. verify(user_agent, ip)checks crawler IPs offline against the bundled networks of everyrdnssuffix (forward-confirmed from the iplore rDNS database) and everyrangesURL.lookup=Trueadds a live forward-confirmed reverse DNS check for addresses the data does not know yet.networks(ip)lists the crawler networks containing an address.- Unknown bots get a
nameandversiontoo, plusurls,emailsandsignalsexplaining why they count as bots. agents(*tags)androbots_txt(*tags, path="/")generate robots.txt rules.python -m uaidreads user agents, orIP<TAB>user agentlines, and prints JSON.- Results are cached, rules are looked up through trigram indexes, and import takes about 19 ms.
- rDNS suffixes and official IP range URLs added for about 150 more crawlers.
- Builds work offline:
crawler-ips.jsonnow lives in the repository and is refreshed daily.
1.3.0
identifyreturns the crawlername.- rDNS fixes: Amazonbot verifies against
.crawl.amazonbot.amazon. Google crawlers use.googlebot.comand.google.cominstead of.googleusercontent.com, which any Google Cloud VM can carry; user-triggered fetchers keep.gae.googleusercontent.com..amazonaws.comis no longer accepted, and Perplexity's unusable suffix is removed. - rDNS suffixes added for Dataprovider, Barkrowler, Recorded Future and RiverBot.
- New crawlers, including Codex, DoubaoBot, Crawlspace, GeneralRetrieval, Xiaohongshu sitemap crawler and Node.js fetch, and many new observed instances.
1.1.2
Fixes crawler precedence so the actual bot wins over the library or engine it runs on, e.g. ShapBot over Lightpanda, Puppeteer/Yext/Prerender over HeadlessChrome, VirusTotal over App Engine, Lumar over its Googlebot user agent, WPScan and Jetmon over a loose WordPress rule, and Pingdom over PageSpeed. Merges 14 duplicate entries and removes the MDDS rule, an OEM token found in regular browser user agents (4492 → 4477). New tests require every instance to identify as its own entry and every rule to belong to one entry.
1.1.1
Adds 6 crawlers (4486 → 4492) seen in data.tn3w.dev crawler traffic: email-guesser, Metabase CVE detection probe, TechLeadsBot, msh-pdfmin, FXMacroData research and BigCrawl. email-guesser and the Metabase probe were previously not detected as bots.
robots.txt stats
Daily robots.txt stats for the top 25,000 Tranco sites. See README.
1.1.0
Adds 1570 crawlers (2916 → 4486) imported from monperrus/crawler-user-agents, arcjet/well-known-bots, matomo device-detector, ai.robots.txt, browscap, Crawler-Detect, isbot, herrbischoff/user-agents, user-agents.net and the-art-of-web. All rules are plain substring matches validated against the 30k browser test corpus.