juliomalegria / python-craigslist

Simple Craigslist wrapper
MIT No Attribution
387 stars 117 forks source link

Cant import into Jupyter Notebook #53

Closed ppoiter closed 5 years ago

ppoiter commented 6 years ago

I was having an issue similar to that of @JRHutson but his uninstall/reinstall solution does not work for me. I am attempting to import into a python 3 Jupyter Notebook but it times out with a connection error.

Any ideas? Thanks :)

juliomalegria commented 6 years ago

Not sure what could be the cause. What is timing out? Importing the module? When the module is initalized, it queries Cragislist to get the valid sites. Could it be that something is blocking requests to external URLs?

Can you try running:

import requests
_ = requests.get('http://www.craigslist.org/about/sites')

Does that time out?

juliomalegria commented 5 years ago

Closing because of inactivity. Feel free to reopen if the issue keeps happening.