Skip to content

Commit

Permalink
Modified fetch description file
Browse files Browse the repository at this point in the history
  • Loading branch information
het-patel99 committed Sep 29, 2021
1 parent 0aa0424 commit a37a7f3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<p align="center">
<a href="link-of-our-extension">
<img alt="GitHub Profile Readme Generator" src="images/cheapbuy.png" width="60" />
<img alt="GitHub Profile Readme Generator" src="extension/images/cheapbuy.png" width="60" />
</a>
</p>
<h1 align="center">
cheapBuy
</h1>

---

**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.

---

<!--Badges-->
<p align="center">
<a href="https://github.com/het-patel99/cheapBuy/blob/master/LICENSE" target="blank">
Expand Down Expand Up @@ -49,9 +55,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!
Expand All @@ -63,4 +69,4 @@ Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDU


## 💻 Built with
- [Javascript]
- [Javascript][python][html][css]
3 changes: 1 addition & 2 deletions web_scrappers/fetch_description_amazon.py
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions web_scrappers/fetch_description_bjs.py
Original file line number Diff line number Diff line change
@@ -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
return description
3 changes: 1 addition & 2 deletions web_scrappers/fetch_description_costco.py
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions web_scrappers/fetch_description_walmart.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a37a7f3

Please sign in to comment.