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

Error since a few days #17

Open Slothoncrack opened 4 years ago

Slothoncrack commented 4 years ago

Hi Grant,

I love your script, but it stopped working a few days ago. Tried on Windows, Ubuntu & Android (pydroid), same errors everywhere.

Traceback (most recent call last): File "C:\Users\user123\AppData\Local\Programs\Python\Python37\Scripts\wg-gesucht-crawler-cli-script.py", line 11, in load_entry_point('wg-gesucht-crawler-cli==0.2.1', 'console_scripts', 'wg-gesucht-crawler-cli')() File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 722, in call return self.main(args, kwargs) File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 697, in main rv = self.invoke(ctx) File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 535, in invoke return callback(args, kwargs) File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\wg_gesucht\cli.py", line 107, in cli wg_gesucht.sign_in() File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\wg_gesucht\crawler.py", line 100, in sign_in if login.json() is True: File "c:\users\user123\appdata\local\programs\python\python37\lib\site-packages\requests\models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "c:\users\user123\appdata\local\programs\python\python37\lib\json__init__.py", line 348, in loads return _default_decoder.decode(s) File "c:\users\user123\appdata\local\programs\python\python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\users\user123\appdata\local\programs\python\python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Stopped running!

tbrodbeck commented 4 years ago

Hi. I just tried the library for the first time and I experienced the same error:

$ wg-gesucht-crawler-cli --change-all
Email address used on wg-gesucht.de? ******@gmail.com
Password used for wg-gesucht.de? 
What is your phone number? (optional) ********
Traceback (most recent call last):
  File "/Users/tillmann/Library/Python/3.7/bin/wg-gesucht-crawler-cli", line 8, in <module>
    sys.exit(cli())
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/wg_gesucht/cli.py", line 107, in cli
    wg_gesucht.sign_in()
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/wg_gesucht/crawler.py", line 100, in sign_in
    if login.json() is True:
  File "/Users/tillmann/Library/Python/3.7/lib/python/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Stopped running!
tbrodbeck commented 4 years ago

Could this be related to this issue? https://github.com/nickirk/immo/issues/8