Skip to content

Instantly share code, notes, and snippets.

View programingcorner's full-sized avatar

Corner programingcorner

  • Corner
  • India
View GitHub Profile
@programingcorner
programingcorner / E-Commerce price Comparison using python with gui.py
Created January 6, 2021 17:57
Monitoring price comparison for a particular product on different e-commerce websites using Python. Particular we use beautiful Soup for scraping data from different website like amazon, flipkart ,ebay, olx etc. and with that we provide direct link to different website of our same search product . program description . we are using python tkint…
from tkinter import *
from tkinter import Scrollbar
from bs4 import BeautifulSoup
import requests
import webbrowser
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
# import manan as m
flipkart=''
ebay=''
#this is comments,it won't be executed.
print("hello from python") #single line comment
"""" this is multi line
comments.this won't
be executed """"
print(10+5)
$ python
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello world!")
hello world!
# Now we can type any valid python expression at the prompt. python reads the typed expression, evaluates it and prints the result.
>>> 11
11
def creat(user,password):
with open('account.txt','a') as file:
file.write(f'{user} {password}\n')
def loginfunction(user,password):
logininfo = f'{user} {password}'
with open('account.txt','r') as file:
users = file.readlines()
loop = True
f= 0