chg: [Onion] add discovery queue

This commit is contained in:
Terrtia 2019-11-26 16:43:04 +01:00
parent 0af359e5e5
commit 2841c95321
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -251,7 +251,7 @@ if __name__ == "__main__":
r_onion.sadd('onion_domain_crawler_queue', subdomain)
msg = '{};{}'.format(url,PST.p_rel_path)
if not r_onion.hexists('onion_metadata:{}'.format(subdomain), 'first_seen'):
r_onion.sadd('onion_crawler_priority_queue', msg)
r_onion.sadd('onion_crawler_discovery_queue', msg)
print('send to priority queue')
else:
r_onion.sadd('onion_crawler_queue', msg)