Skip to content

Commit

Permalink
Merge pull request #72
Browse files Browse the repository at this point in the history
style: format code with Black
  • Loading branch information
matheeshapathirana authored May 3, 2024
2 parents 238d2c8 + 178fcbe commit a52f3c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ async def open_webpage_with_cookies(session, link, json_cookies, filename):
else:
try:
plan = (
soup.select_one(
"div.account-section:nth-child(2) > section:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1)"
).text
or soup.select_one(".default-ltr-cache-10ajupv").text
soup.select_one(
"div.account-section:nth-child(2) > section:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1)"
).text
or soup.select_one(".default-ltr-cache-10ajupv").text
)
email = soup.select_one(".account-section-email").text
except AttributeError:
Expand Down Expand Up @@ -120,7 +120,7 @@ async def process_cookie_file(filename):
cookies.append(additional_json)
# Save working cookies to JSON file
with open(
f"working_cookies/[{email}] - {plan}.json", "w"
f"working_cookies/[{email}] - {plan}.json", "w"
) as json_file:
json.dump(cookies, json_file, indent=4)
working_cookies += 1
Expand Down

0 comments on commit a52f3c2

Please sign in to comment.