Giter Club home page Giter Club logo

Comments (8)

customer101 avatar customer101 commented on August 19, 2024 2

I'm facing the same problem. I changed the URL_TEMPLATE here
to become URL_TEMPLATE = "https://data.commoncrawl.org/{filename}" following this announcement

EDIT: It seems this PR did the same, I don't know why it doesn't get merged #41

from comcrawl.

kouohhashi avatar kouohhashi commented on August 19, 2024

Hi I have same issue.
Have you find a workaround?

from comcrawl.

sufyanel avatar sufyanel commented on August 19, 2024

yes i fixed it. I created a fork and add this code chunk in try except block. It worked for me.

from comcrawl.

kouohhashi avatar kouohhashi commented on August 19, 2024

I installed comcrawl today by pip install comcrawl.

And I did

from comcrawl import IndexClient
client = IndexClient(["2019-51", "2019-47"], verbose=True)
client.download()

is there anything I can dig?

from comcrawl.

sufyanel avatar sufyanel commented on August 19, 2024

create a fork from original repo and add try except in client.download() method. Or i can send you my module if you can share your email.

from comcrawl.

kouohhashi avatar kouohhashi commented on August 19, 2024

When I use "CC-MAIN-2022-33" as index like below,

from comcrawl import IndexClient
client = IndexClient(["CC-MAIN-2022-33"])
client.search("reddit.com/r/MachineLearning/*")
client.download()
client.results

I did not get an error but client.results is [].

When I use "2022-33" as index like below,

from comcrawl import IndexClient
client = IndexClient(["2022-33"])
client.search("reddit.com/r/MachineLearning/*")
client.download()

I got an error.

I'm not sure how to set index correctly.

Thanks in advance.

from comcrawl.

jaceaser avatar jaceaser commented on August 19, 2024

I have issues and get this error. Is there something I'm missing in my setup?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/util/util.py", line 38, in reraise
raise value.with_traceback(tb)
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 536, in _make_request
response = conn.getresponse()
File "/Users/joshuaceaser/Innoventage/Ingestion/.venv/lib/python3.10/site-packages/urllib3/connection.py", line 454, in getresponse
httplib_response = super().getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1368, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 317, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 286, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

from comcrawl.

jaceaser avatar jaceaser commented on August 19, 2024

Nevermind, my issue was VPN related.

from comcrawl.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.