Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update micheline_scraper.py
  • Loading branch information
tusharnankani authored Oct 27, 2020
commit b8ffee5b797774e9413aa778d8db315f4ece3996
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import requests, string, re, sys
from unidecode import unidecode


base_url='https://guide.michelin.com/en/restaurant/'


def normalize_input(resturant_name):
# converting to lower case and replacing white spaces
resturant_name = resturant_name.lower().strip()
Expand Down Expand Up @@ -52,11 +50,5 @@ def main():
resturent = normalize_input(str(sys.argv[1]))
print(get_resturent_details(resturent))


if __name__ == "__main__":
main()