diff --git a/README.md b/README.md index 6ccf480..f72c4b2 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ cheapBuy +--- + +**cheapBuy Extension** provides you ease to buy any product through your favourite website's like Amazon, Walmart, Ebay, Bjs, Costco, etc, by providing prices of the same product from all different websites to extension. It takes lot of time to search for the same product in different websites, and find the cheapest one, instead just add our extension **cheapBuy** and it will automatically fetch you price of the same product from different websites and you can directly compare the prices from different websites through our extension. In sum, **cheapBuy** is an one stop solution to buy the cheapest product online. + +--- +

@@ -51,9 +57,9 @@ Try the tool: [cheapBuy](link of our extension) ## 🛠️ Installation Steps -1. Clone the repository -2. - +1. Clone this github repository +2. Run requirement.txt file. +3. 🌟 You are all set! @@ -65,4 +71,4 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU ## 💻 Built with -- [Javascript] +- [Javascript][python][html][css] diff --git a/web_scrappers/fetch_description_amazon.py b/web_scrappers/fetch_description_amazon.py index 0bdfda9..8e74038 100644 --- a/web_scrappers/fetch_description_amazon.py +++ b/web_scrappers/fetch_description_amazon.py @@ -1,11 +1,10 @@ def description_from_url_amazon(link): - link = link.strip('https://www.amazon.com/') + link = link.replace('https://www.amazon.com/','') description = '' for ch in link: if ch!='/': description+=ch else: break - description = description.replace('-', ' ') return description \ No newline at end of file diff --git a/web_scrappers/fetch_description_bjs.py b/web_scrappers/fetch_description_bjs.py index da07ffe..eb5446d 100644 --- a/web_scrappers/fetch_description_bjs.py +++ b/web_scrappers/fetch_description_bjs.py @@ -1,10 +1,11 @@ def description_from_url_bjs(link): - remove_initial = link.strip("https://www.bjs.com/product/") + remove_initial = link.replace("https://www.bjs.com/product/","") description = '' + print(remove_initial) for i in remove_initial: if(i!="/"): description += i else: break description = description.replace('-',' ') - return description \ No newline at end of file + return description diff --git a/web_scrappers/fetch_description_costco.py b/web_scrappers/fetch_description_costco.py index ea85b7e..77e4840 100644 --- a/web_scrappers/fetch_description_costco.py +++ b/web_scrappers/fetch_description_costco.py @@ -1,11 +1,10 @@ def description_from_url_costco(link): - remove_initial = link.strip("https://www.costco.com/") + remove_initial = link.replace("https://www.costco.com/","") description = '' for i in remove_initial: if(i!="."): description += i else: break - description = description.replace('-',' ') return description diff --git a/web_scrappers/fetch_description_walmart.py b/web_scrappers/fetch_description_walmart.py index ace55a4..9e8dca9 100644 --- a/web_scrappers/fetch_description_walmart.py +++ b/web_scrappers/fetch_description_walmart.py @@ -1,11 +1,10 @@ def description_from_url_walmart(link): - remove_initial = link.strip("https://walmart.com/ip/") + remove_initial = link.replace("https://walmart.com/ip/","") description = '' for i in remove_initial: if(i!="/"): description += i else: break - description = description.replace('-',' ') return description \ No newline at end of file