Closed HacisKenan closed 2 years ago
You have no indentation for Telegram's configuration, which the YAML format depends on for parsing:
❌ No indentation: ❌
telegram:
bot_token: 5xxxxxxxxxxxxxxxxxxxx
receiver_ids:
- 5xxxxxxxxxxx
- 5xxxxxxxxxxx
✅ Correctly intended: ✅
telegram:
bot_token: 5xxxxxxxxxxxxxxxxxxxx
receiver_ids:
- 5xxxxxxxxxxx
- 5xxxxxxxxxxx
Thanks for answering, that resolved that issue but a new one occurred. Following:
(flathunter-main) kenanhacisalihoglu@MacBook-Pro-von-Kenan flathunter-main % python flathunt.py [2022/08/05 21:18:23|config.py |INFO ]: Using config /Users/kenanhacisalihoglu/Downloads/flathunter-main/config.yaml [2022/08/05 21:18:24|crawl_wggesucht.py |WARNING ]: No size found - skipping [2022/08/05 21:18:25|idmaintainer.py |ERROR ]: Error unable to open database file: Traceback (most recent call last): File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunt.py", line 105, in
main() File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunt.py", line 101, in main launch_flat_hunt(config, heartbeat) File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunt.py", line 31, in launch_flat_hunt hunter.hunt_flats() File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunter/hunter.py", line 54, in hunt_flats for expose in processor_chain.process(self.crawl_for_exposes(max_pages)): File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunter/idmaintainer.py", line 25, in process_expose self.id_watch.save_expose(expose) File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunter/idmaintainer.py", line 85, in save_expose cur = self.get_connection().cursor() File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunter/idmaintainer.py", line 65, in get_connection raise error File "/Users/kenanhacisalihoglu/Downloads/flathunter-main/flathunter/idmaintainer.py", line 53, in get_connection self.threadlocal.connection = lite.connect(self.db_name) sqlite3.OperationalError: unable to open database file (flathunter-main) kenanhacisalihoglu@MacBook-Pro-von-Kenan flathunter-main %
You have uncommented line 16 of the config file and did not yet replace the placeholder /path/to/database
. This is why Flathunter can not find and therefore open your database.
Comment the line again or change the value to an existing directory to make it work! 😊
When trying to run flathunt.py I get the following Error:
My config File:
The pytest returns no errors besides test_web_interface.py and test_crawl_immosbiliencout.py (because of No Captcha and Weblink I think). Where could the problem be?