ahmia / ahmia-crawler Goto Github PK
View Code? Open in Web Editor NEWCollection of crawlers used by the ahmia search engine
License: BSD 3-Clause "New" or "Revised" License
Collection of crawlers used by the ahmia search engine
License: BSD 3-Clause "New" or "Revised" License
After fixing #9 this came up, seems like a PySocks bug: #todo report it.
Exception happened during processing of request from ('127.0.0.1', 48068)
Traceback (most recent call last):
File "<path2venv>/ahmia-crawler/lib/python3.6/site-packages/socks.py", line 851, in connect
negotiate(self, dest_addr, dest_port)
File "<path2venv>/ahmia-crawler/lib/python3.6/site-packages/socks.py", line 497, in _negotiate_SOCKS5
self, CONNECT, dest_addr)
File "<path2venv>/ahmia-crawler/lib/python3.6/site-packages/socks.py", line 578, in _SOCKS5_request
raise SOCKS5Error("{0:#04x}: {1}".format(status, error))
socks.SOCKS5Error: 0x06: TTL expired
Currently polipo
remains the stable proxy solution for the crawler.
ahmia-crawler/ahmia/ahmia/spiders/base.py
Line 128 in 0ec3be0
should be:
hash_target = hashlib.sha1(request.url.encode('utf-8')).hexdigest()
Anyone seen this before?
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/scrapyelasticsearch/scrapyelasticsearch.py", line 116, in process_item
self.index_item(item)
File "/home/akent/Desktop/ahmia-crawler/ahmia/ahmia/pipelines.py", line 87, in index_item
self.send_items()
File "/usr/local/lib/python2.7/dist-packages/scrapyelasticsearch/scrapyelasticsearch.py", line 109, in send_items
helpers.bulk(self.es, self.items_buffer)
File "/usr/local/lib/python2.7/dist-packages/elasticsearch/helpers/init.py", line 190, in bulk
for ok, item in streaming_bulk(client, actions, **kwargs):
File "/usr/local/lib/python2.7/dist-packages/elasticsearch/helpers/init.py", line 162, in streaming_bulk
for result in _process_bulk_chunk(client, bulk_actions, raise_on_exception, raise_on_error, **kwargs):
File "/usr/local/lib/python2.7/dist-packages/elasticsearch/helpers/init.py", line 134, in _process_bulk_chunk
raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors)
BulkIndexError: (u'316 document(s) failed to index.', [{u'update': {u'status': 400, u'_type': u'tor', u'_id': u'd3ba376d34cbea850dabc25b1d4a884da852c995', u'error': {u'caused_by': {u'reason': u'scripts of type [inline], operation [update] and lang [groovy] are disabled', u'type': u'script_exception'}, u'reason': u'failed to execute script', u'type': u'illegal_argument_exception'}, u'_index': u'crawl'}}, {u'update': {u'status': 400, u'_type': u'tor', u'_id': u'9bbd33851fb71cc9980b262797a00c1a06932094', u'error': {u'caused_by': {u'reason': u'scripts of type [inline], operation [update] and lang [groovy] are disabled', u'type': u'script_exception'}, u'reason': u'failed to execute script', u'type': u'illegal_argument_exception'}, u'_index': u'crawl'}}, {u'update': {u'status': 400, u'_type': u'tor', u'_id': u'd730f4a540adad5892aa58a5870baed904b6c4c1', u'error': {u'caused_by': {u'reason': u'sc
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
ERROR:
ERROR: twisted 19.2.1 has requirement attrs>=17.4.0, but you'll have attrs 17.2.0 which is incompatible.
$ python http_tor_proxy.py
Serving at port 14444
$ curl -x http://localhost:14444 http://msydqstlz2kzerdg.onion
Traceback (most recent call last):
File "http_tor_proxy.py", line 67, in <module>
httpd.serve_forever()
File "/usr/lib/python3.6/socketserver.py", line 238, in serve_forever
self._handle_request_noblock()
File "/usr/lib/python3.6/socketserver.py", line 312, in _handle_request_noblock
request, client_address = self.get_request()
File "/usr/lib/python3.6/socketserver.py", line 500, in get_request
return self.socket.accept()
File "/usr/lib/python3.6/socket.py", line 210, in accept
sock = socket(self.family, type, self.proto, fileno=fd)
TypeError: __init__() got an unexpected keyword argument 'fileno'
https://www.irif.fr/~jch/software/polipo/
Polipo will no longer be maintained. Are you going to move into some other alternative?
https://github.com/jech/polipo
Does this require tor to be installed? It's failing the initial run daily trying to retrieve and .onion site.
Would it be harrd to build a docker image so this all just works?
Please I need money very urgent to make money help me pls
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.