from insertUpdateProd import insertUpdateProds
from trackUserSearch import updateUserSearch
from prevSearch import getPrevSearch
from userCreationAndAuthentication import createAndAuthUser
import dailyProductTracking
import deleteOldData
import emailAlerts

classes = emailAlerts.emailAlertForProducts("iphone",124)
thisValue = classes.createAlert()
thisValue1= thisValue

#classes = dailyProductTracking.dailyProdSearch()

'''users ={"firstName":"Abhi","lastName":"Mynam","DOB":"11/11/1989","email":"abhi@gmail.com","password":"abhishek"}
users =createAndAuthUser(users)
outputmsg = users.authUser()
outputmsg1=outputmsg'''




''''
prod={"name":"iphone11","url":"www.google.com","price":123}
classes = insertUpdateProds(prod)
classes.prodManipulations()
user =123
class2 = updateUserSearch(prod,user)
class2.insertUpdateUserSearch()
userId=123
classes = getPrevSearch(userId)
classes.prevSearch()'''


'''
import pymongo

DBClient = pymongo.MongoClient()

DB=DBClient.practiceDB

result = DB.post.update_one(
    {
        "title":"insert from python"},{ "$set":{
        "description":"first row updating from python",
        "learntBy":"Abhishek Mynam",
        "operations":[{"find":"done","insert":"done","update":"to be learnt"}]
    }}

)
colData=DB.post.find({"title":"insert from python"})
if colData is not None:
    for colData1 in colData:
        print(colData1)
else:
    print("no data")'''



'''from amazon.api import AmazonAPI

amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG)
products = amazon.search(Keywords='kindle', SearchIndex='All')
for i, product in enumerate(products):
    print("{0}. '{1}'".format(i, product.title))
    ("https://api.bestbuy.com/v1/products((search=iphone))?apiKey=dwg5j4bky4vpvcpsvqt7nbuc&sort=salePrice.asc&show=salePrice,url&pageSize=1&callback=JSON_CALLBACK&format=json")

    for bill in data['bills']:
    for organization in bill['organizations']:
        print (organization.get('name'))`

'''

