-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0aa0424
commit a37a7f3
Showing
5 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |