Skip to content

Commit 8f7646f

Browse files
committed
requests and scd diet web scrapper
1 parent 6cff5a9 commit 8f7646f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

days/46-48-beautifulsoup4/SCD_scrapper/scd_scrapper.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ def food_status(scd_list: list):
5252

5353

5454
if __name__ == "__main__":
55-
reload = input("Do you reload the list from SCD website? Reply Y to reload : ")
55+
reload = input("Do you want to reload the list from SCD website? Reply Y to reload : ")
5656
if reload == "Y":
5757
scd_list_reload = list_of_foods()
5858
write_list_to_json(scd_list_reload)
59-
cached_scd_list = load_scd_list()
60-
food_status(cached_scd_list)
59+
while True:
60+
cached_scd_list = load_scd_list()
61+
food_status(cached_scd_list)

0 commit comments

Comments
 (0)