Skip to content

Commit

Permalink
Update price_comparison_engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-Code-007 authored Jan 23, 2021
1 parent ce7f8ef commit 1e98f62
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions price_comparison_engine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


from tkinter import *
from bs4 import BeautifulSoup
import requests
Expand All @@ -6,18 +8,19 @@
from collections import defaultdict

root = Tk()

root.geometry("320x150")

class Price_compare:

def __init__(self, master):

self.var = StringVar()
self.var_ebay = StringVar()
self.var_flipkart = StringVar()
self.var_amzn = StringVar()

label = Label(master, text='Enter the product')
label.grid(row=0, column=0)
label.grid(row=0, column=0,padx=(30,10),pady=30)

entry = Entry(master, textvariable=self.var)
entry.grid(row=0, column=1)
Expand Down Expand Up @@ -178,7 +181,7 @@ def visit_amzn(self):
def visit_flip(self):
webbrowser.open(self.link_flip)


c = Price_compare(root)
root.title('Price Comparison Engine')
root.mainloop()
if __name__ == "__main__":
c = Price_compare(root)
root.title('Price Comparison Engine')
root.mainloop()

1 comment on commit 1e98f62

@somesh333
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks bro i need this project. if this project is working successfully then i push ebay ,croma and olx site also in this project

Please sign in to comment.