TL;DR: Access to https://tor2web.tld/antanistaticmap/stats/yesterday, you can collect Tor Hidden services URLs that has tor2web users accessed.

There is a thing called Tor Hidden Service that can publish service anonymously.

I have written an article in Japanese about how to publish Tor Hidden Service.

The Tor Hidden Service can not be accessed from a clear network, but can easily be accessed using a proxy called Tor2Web. Tor2Web

The famous Tor2web example:

Tor2web records how much access has been made to which Tor Hidden Service and publishes it. Source This record can be easily obtained by sending an HTTP Get request to “Tor2web’s domain” + “/antanistaticmap/stats/yesterday”.

The following code gets the data and lists it in order of the number of accesses to Tor Hidden Service.

import urllib.request
import json
import sys
import ssl

ssl._create_default_https_context = ssl._create_unverified_context

# arg e.g.

TOR2WEB_DATA_URL = '/antanistaticmap/stats/yesterday'

req = urllib.request.Request(sys.argv[1] + TOR2WEB_DATA_URL)
with urllib.request.urlopen(req) as res:
    body = json.loads('utf-8'))

services = body['hidden_services']
services.sort(key=lambda x: x['access_count'])
for service in services:
    print("URL: {}.onion , Count: {}".format(service['id'], service['access_count']))