Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. igpages = db.managed_accounts.find({'mobile':True})
  2. for page in igpages:
  3.     if page['drop_niche'] == "Hustlers" and page['proxy'] == "DUMMYVALUE":
  4.         niche, fwcount = get_niche(None, page['like_from'])
  5.         if niche != page['drop_niche']:
  6.             print(page)
  7.             print(niche)
  8.             print("-------------")
  9.             # db.managed_accounts.update_one({'_id': page['id']}, { '$set': { 'drop_niche': niche, 'like_from_niche': niche } })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement