Skip to content

Commit bf6bf21

Browse files
Rename folders using new naming convention
1 parent 0ca7956 commit bf6bf21

File tree

8 files changed

+93
-87
lines changed

8 files changed

+93
-87
lines changed

Amazon-Price-Alert/README.md

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
# Amazon prices keep fluctuating- Let's scrape them!
22

3-
C3PO is a web-scraper built on BeautifulSoup that alerts you when the price of an amazon prduct falls within your budget! Currently in development.
4-
5-
## What is the use?
6-
Nothing is worse than seeing the price drop of a product you just bought on Amazon drop 2 days after you bought it. Wouldn't it be amazing if a python script could just
7-
ask you your budget and the product link and then notify you when the product price drops below that? This is exactly what this script does!
8-
9-
## How to use
10-
* Simply copy the link of the product and your budget that's it!
11-
* Paste the link when the program requests you to
12-
* Enter budget for the product(without currency symbol)
13-
* Select frequency to check prices
14-
* Keep the script running in the background
15-
The scraper will do the rest for you and notify you when the price is in your budget.
16-
However, it is to be kept in mind that the sender email ID and password has been stored in os variables in the script. Therefore, wherever you see the imports of
17-
'DEVELOPER_EMAIL' and 'DEVELOPER_PASS', be sure to replace them with the email ID you wish to recieve the notification from.
18-
### Side Note
19-
Do remember to install the dependencies in the requirements.txt file!
20-
21-
## Modules used (available in requirements.txt)
22-
* requests_html
23-
* BeautifulSoup
24-
25-
## Development Status
26-
This scrapper is complete. A future version may have emails sent via a server.
27-
28-
### Developed by [Sarthak Saxena](https://github.com/sarthak1905)
3+
C3PO is a web-scraper built on BeautifulSoup that alerts you when the price of an amazon prduct falls within your budget! Currently in development.
4+
5+
## What is the use?
6+
7+
Nothing is worse than seeing the price drop of a product you just bought on Amazon drop 2 days after you bought it. Wouldn't it be amazing if a python script could just
8+
ask you your budget and the product link and then notify you when the product price drops below that? This is exactly what this script does!
9+
10+
## How to use
11+
12+
- Simply copy the link of the product and your budget that's it!
13+
- Paste the link when the program requests you to
14+
- Enter budget for the product(without currency symbol)
15+
- Select frequency to check prices
16+
- Keep the script running in the background
17+
The scraper will do the rest for you and notify you when the price is in your budget.
18+
However, it is to be kept in mind that the sender email ID and password has been stored in os variables in the script. Therefore, wherever you see the imports of
19+
'DEVELOPER_EMAIL' and 'DEVELOPER_PASS', be sure to replace them with the email ID you wish to recieve the notification from.
20+
21+
### Side Note
22+
23+
Do remember to install the dependencies in the requirements.txt file!
24+
25+
## Modules used (available in requirements.txt)
26+
27+
- requests_html
28+
- BeautifulSoup
29+
30+
## Development Status
31+
32+
This scrapper is complete. A future version may have emails sent via a server.
33+
34+
### Developed by [Sarthak Saxena](https://github.com/sarthak1905)
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
from tkinter import*
2-
3-
root = Tk()
4-
root.geometry("1350x650+0+0")
5-
root.resizable(0,0)
6-
root.title("BMI CALCULATOR")
7-
8-
def BMI_Cal():
9-
Bheight = float(var2.get())
10-
Bweight = float(var1.get())
11-
BMI = str('%.2f' %(Bweight / (Bheight * Bheight)))
12-
labelBMIResult.config(text = BMI)
13-
14-
15-
var1 = DoubleVar()
16-
var2 = DoubleVar()
17-
18-
Tops = Frame(root, width = 1350, height = 50, bd = 8, relief = "raise")
19-
Tops.pack(side = TOP)
20-
21-
f1 = Frame(root, width = 600, height = 600, bd = 8, relief = "raise")
22-
f1.pack(side = LEFT)
23-
24-
f2 = Frame(root, width = 300, height = 700, bd = 8, relief = "raise")
25-
f2.pack(side = RIGHT)
26-
27-
f1a = Frame(f1, width = 600, height = 200, bd = 20, relief = "raise")
28-
f1a.pack(side = TOP)
29-
f1b = Frame(f1, width = 600, height = 600, bd = 20, relief = 'raise')
30-
f1b.pack(side=TOP)
31-
32-
label1Title = Label(Tops, text = " BODY MASS INDEX ", padx = 16, pady = 16, bd = 16, fg = '#000000', font = ("arial", 54, 'bold'), bg = "powder blue", relief = 'raise', width = 32, height = 1)
33-
label1Title.pack()
34-
35-
labelweight = Label(f1a, text = "Select Weight in Kilograms", font =('arial', 20, 'bold'), bd = 20).grid(row = 0, column = 0)
36-
Bodyweight = Scale(f1a, variable = var1, from_ = 1, to = 500, length = 880, tickinterval = 30, orient = HORIZONTAL)
37-
Bodyweight.grid(row = 1, column = 0)
38-
39-
labelheight = Label(f1b, text = "Enter Height in Meters Square", font =('arial', 20, 'bold'), bd = 20).grid(row = 0, column = 0)
40-
textheight = Entry(f1b, textvariable = var2, font = ('arial', 16, 'bold'), bd = 16, width = 22, justify = 'center')
41-
textheight.grid(row = 1, column = 0)
42-
43-
labelBMIResult = Label(f1b, padx = 16, pady = 16, bd = 16, fg = '#000000', font = ('arial', 30, 'bold'), bg = 'sky blue', relief = 'sunk', width = 34, height = 1)
44-
labelBMIResult.grid(row = 2, column = 0)
45-
46-
labelBMITable = Label(f2, font = ("arial", 20, 'bold'), text = 'BMI Table').grid(row = 0, column = 0)
47-
txtlabelBMITable = Text(f2, height = 12, width = 38, bd = 16, font = ("arial", 12, 'bold'))
48-
txtlabelBMITable.grid(row = 1, column = 0)
49-
50-
txtlabelBMITable.insert(END, 'Meaning \t\t' + "BMI \n\n")
51-
txtlabelBMITable.insert(END, 'Normal weight \t\t' + "19-24 \n\n")
52-
txtlabelBMITable.insert(END, 'Overwight \t\t' + "25-29,9 \n\n")
53-
txtlabelBMITable.insert(END, 'Obesity level I \t\t' + "30-34, 9 \n\n")
54-
txtlabelBMITable.insert(END, 'Obesity level II \t\t' + "35-39, 9\n\n")
55-
txtlabelBMITable.insert(END, 'Obesity level III \t\t' + ">= 40\n\n")
56-
57-
btnBMI = Button(f2, text = "Click to \nCheck Your \nBMI", padx = 8, pady = 8, bd = 12, width = 21, font = ("arial", 20, 'bold'), height = 3, command = BMI_Cal)
58-
btnBMI.grid(row = 2, column = 0)
59-
60-
root.mainloop()
61-
1+
from tkinter import*
2+
3+
root = Tk()
4+
root.geometry("1350x650+0+0")
5+
root.resizable(0,0)
6+
root.title("BMI CALCULATOR")
7+
8+
def BMI_Cal():
9+
Bheight = float(var2.get())
10+
Bweight = float(var1.get())
11+
BMI = str('%.2f' %(Bweight / (Bheight * Bheight)))
12+
labelBMIResult.config(text = BMI)
13+
14+
15+
var1 = DoubleVar()
16+
var2 = DoubleVar()
17+
18+
Tops = Frame(root, width = 1350, height = 50, bd = 8, relief = "raise")
19+
Tops.pack(side = TOP)
20+
21+
f1 = Frame(root, width = 600, height = 600, bd = 8, relief = "raise")
22+
f1.pack(side = LEFT)
23+
24+
f2 = Frame(root, width = 300, height = 700, bd = 8, relief = "raise")
25+
f2.pack(side = RIGHT)
26+
27+
f1a = Frame(f1, width = 600, height = 200, bd = 20, relief = "raise")
28+
f1a.pack(side = TOP)
29+
f1b = Frame(f1, width = 600, height = 600, bd = 20, relief = 'raise')
30+
f1b.pack(side=TOP)
31+
32+
label1Title = Label(Tops, text = " BODY MASS INDEX ", padx = 16, pady = 16, bd = 16, fg = '#000000', font = ("arial", 54, 'bold'), bg = "powder blue", relief = 'raise', width = 32, height = 1)
33+
label1Title.pack()
34+
35+
labelweight = Label(f1a, text = "Select Weight in Kilograms", font =('arial', 20, 'bold'), bd = 20).grid(row = 0, column = 0)
36+
Bodyweight = Scale(f1a, variable = var1, from_ = 1, to = 500, length = 880, tickinterval = 30, orient = HORIZONTAL)
37+
Bodyweight.grid(row = 1, column = 0)
38+
39+
labelheight = Label(f1b, text = "Enter Height in Meters Square", font =('arial', 20, 'bold'), bd = 20).grid(row = 0, column = 0)
40+
textheight = Entry(f1b, textvariable = var2, font = ('arial', 16, 'bold'), bd = 16, width = 22, justify = 'center')
41+
textheight.grid(row = 1, column = 0)
42+
43+
labelBMIResult = Label(f1b, padx = 16, pady = 16, bd = 16, fg = '#000000', font = ('arial', 30, 'bold'), bg = 'sky blue', relief = 'sunk', width = 34, height = 1)
44+
labelBMIResult.grid(row = 2, column = 0)
45+
46+
labelBMITable = Label(f2, font = ("arial", 20, 'bold'), text = 'BMI Table').grid(row = 0, column = 0)
47+
txtlabelBMITable = Text(f2, height = 12, width = 38, bd = 16, font = ("arial", 12, 'bold'))
48+
txtlabelBMITable.grid(row = 1, column = 0)
49+
50+
txtlabelBMITable.insert(END, 'Meaning \t\t' + "BMI \n\n")
51+
txtlabelBMITable.insert(END, 'Normal weight \t\t' + "19-24 \n\n")
52+
txtlabelBMITable.insert(END, 'Overwight \t\t' + "25-29,9 \n\n")
53+
txtlabelBMITable.insert(END, 'Obesity level I \t\t' + "30-34, 9 \n\n")
54+
txtlabelBMITable.insert(END, 'Obesity level II \t\t' + "35-39, 9\n\n")
55+
txtlabelBMITable.insert(END, 'Obesity level III \t\t' + ">= 40\n\n")
56+
57+
btnBMI = Button(f2, text = "Click to \nCheck Your \nBMI", padx = 8, pady = 8, bd = 12, width = 21, font = ("arial", 20, 'bold'), height = 3, command = BMI_Cal)
58+
btnBMI.grid(row = 2, column = 0)
59+
60+
root.mainloop()
61+

0 commit comments

Comments
 (0)