ImportError: No module named rightmove_webscraper
sidhantmehta opened this issue · 1 comments
sidhantmehta commented
Hi there,
I've installed the web scraper using pip and created a file (rightm.py) with the following code to test the scraper:
from rightmove_webscraper import rightmove_data
url ="https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=OUTCODE%5E2378&insId=2&numberOfPropertiesPerPage=24&areaSizeUnit=sqft&googleAnalyticsChannel=buying"
rightmove_object = rightmove_data(url)
print rightmove_object.get_results
But I keep getting this error:
Traceback (most recent call last):
File "rightm.py", line 1, in <module>
from rightmove_webscraper import rightmove_data
ImportError: No module named rightmove_webscraper
Any ideas why this may be happening? Thanks
sidhantmehta commented
No worries, I think i solved it. It was a 'numpy' installation issue on the mac. If anyone else faces this - you need to unintall numpy using: pip install -U rightmove-webscraper --user
Then install the webscraper again and it works :)