TobiasPankner / Gleam-giveaway-bot

Python bot to automatically find and complete gleam giveaways.
GNU General Public License v3.0
90 stars 45 forks source link

Login doesnt work #17

Open DerSchaeler opened 3 years ago

DerSchaeler commented 3 years ago

When I run the login script, the command line pops up and directly close.

Do i something wrong?

My config file: { "do_playrgg_giveaways": true,

"user-data-dir": "C:\Users\user\AppData\Local\Google\Chrome\User Data", "profile-directory": "Profile 1",

"twitter_auth": { "consumer_key": "nDv1n66p57a****W0nemAYPR", "consumer_secret": "1HlNnmD9wmK****fgr4LFPvdIbh2pN4QyyeRmVRM7", "access_token": "11194927****4KG9gKEmklnFCyU7LzixXV", "access_token_secret": "Upv5dJwo****q2hUDTL0uDPtggHrLy5Wt" }, "gleam": { "birth_day": "12", "birth_month": "12", "birth_year": "1989", "accept_terms_and_services": false } }

My login file: import json

from src import browser

if name == 'main': with open('config.json') as json_data_file: config = json.load(json_data_file)

browser.init_driver(config['user-data-dir'], config['profile-directory'], headless=False)
browser.get_url("https://gleam.io/examples/competitions/every-entry-type")

print("Gleam login:")
input("\tPress any button when finished logging in\n")

browser.save_cookies("data/cookies.pkl")

playrgg = input("Do you want to complete playr.gg giveaways as well [y/n]?\n")
if playrgg.lower() == 'y':
    print("Playrgg login:")
    browser.get_url("https://playr.gg/giveaways")

    input("\tPress any button when finished logging in\n")

    browser.save_cookies("data/cookies_playrgg.pkl")

browser.close_driver()

print("Successfully saved authentication cookies")

Can u help me?
TobiasPankner commented 3 years ago

How did you start it?