grantwilliams / wg-gesucht-crawler-cli

Python web crawler / scraper for WG-Gesucht. Crawls the WG-Gesucht site for new apartment listings and send a message to the poster, based off your saved filters and saved text
MIT License
76 stars 28 forks source link

idlelib3.ToolTip error in Python 3.6 #3

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi Grant, thanks a lot for this cool script. I tried to run the script a lot of times with Python 3.6 from my mac terminal, but I have this error: File "main.py", line 11, in from idlelib.ToolTip import ToolTip ModuleNotFoundError: No module named 'idlelib3'

With Python 2.7 the error was: File "main.py", line 7, in import queue ImportError: No module named queue

How can I solve it? Thanks!

grantwilliams commented 7 years ago

Hi, they changed the names of the idlelib modules from uppercase to lower in 3.6 Just change: from idlelib.ToolTip import ToolTip

to

from idlelib.tooltip import ToolTip

ghost commented 7 years ago

Thanks a lot Grant! Now it works.

But now the problem is about login: all my credentials are corrects, I don’t know why I have this error.

On 22 Jun 2017, at 16:49, Grant Williams notifications@github.com wrote:

Hi, they changed the names of the idlelib modules from uppercase to lower in 3.6 Just change: from idlelib.ToolTip import ToolTip

to

from idlelib.tooltip import ToolTip

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grantwilliams/wg-gesucht-crawler/issues/3#issuecomment-310403346, or mute the thread https://github.com/notifications/unsubscribe-auth/AV80M0pF7daJng5NWJ4s8o-TlLUjBTupks5sGn8AgaJpZM4OCVqe.

grantwilliams commented 7 years ago

Hi, you have the same error during login, or a different one? I tested with Ubuntu 16.04 with python 3.6, only changing the above line and it worked.

ghost commented 7 years ago

Hi Grant,

thanks for reply. When I try to login with the correct email and password I receive the message “WG-Gesucht website timed out, please try again later.”. Tried a lot of times but it doesn’t work. Another question: why the mobile number is required for login?

I’m using OSX 10.12.5 with Python 3.6.

On 24 Jun 2017, at 01:34, Grant Williams notifications@github.com wrote:

Hi, you have the same error during login, or a different one? I tested with Ubuntu 16.04 with python 3.6, only changing the above line and it worked.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grantwilliams/wg-gesucht-crawler/issues/3#issuecomment-310795017, or mute the thread https://github.com/notifications/unsubscribe-auth/AV80M2U5YoN5XN-WeXqwXvjuZvhk_Y_Xks5sHEuBgaJpZM4OCVqe.

grantwilliams commented 7 years ago

Hi there, If it's saying the website timed out, maybe wg-gesucht was down then, have you tried since? It's working for me on Windows10 and Ubuntu, but I don't have a Mac to try it out on... And the phone number is just passed on when it applies for an apartment, you can just write a '0' or something if you don't want to give them your phone number. And no I don't work at Factory, is that like a co-working space?

ghost commented 7 years ago

Hi Grant,

What I discovered is that: with my flat connection (60mb) every time I receive the error of time-out, with Factory connection (100mb) I don’t have problem. Actually I don’t know why. Do you think that maybe I have to change some parameters in the script to avoid this error?

Best, Francesco

On 4 Jul 2017, at 20:50, Grant Williams notifications@github.com wrote:

Hi there, If it's saying the website timed out, maybe wg-gesucht was down then, have you tried since? It's working for me on Windows10 and Ubuntu, but I don't have a Mac to try it out on... And the phone number is just passed on when it applies for an apartment, you can just write a '0' or something if you don't want to give them your phone number.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grantwilliams/wg-gesucht-crawler/issues/3#issuecomment-312934407, or mute the thread https://github.com/notifications/unsubscribe-auth/AV80M5zdwVDJJ9a-23CC4iWfuwWgOE4yks5sKoljgaJpZM4OCVqe.

grantwilliams commented 7 years ago

Heya, Not sure if you still need to use this, but I've changed it quite a bit, so it doesn't use Selenium anymore, maybe it works better for you now?