From 944bd268d68924f8e94ce0836f4381a5cdf3e9db Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 19 Jun 2022 01:47:52 +0200 Subject: Experiments downloading the Chrome Web Store dashboard page --- .gitignore | 1 + cws-status | 17 +++++++++++++++++ requirements.txt | 13 +++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 cws-status create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f21b54 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/venv/ diff --git a/cws-status b/cws-status new file mode 100644 index 0000000..e2c4ba0 --- /dev/null +++ b/cws-status @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +from urllib import request + +import browser_cookie3 + +url = 'https://chrome.google.com/webstore/devconsole/' + +cookie_jar = browser_cookie3.chrome( + cookie_file='', +) + +opener = request.build_opener(request.HTTPCookieProcessor(cookie_jar)) + +page_html = opener.open(url).read() + +print(page_html) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8a166b5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,13 @@ +browser-cookie3==0.15.0 +cffi==1.15.0 +cryptography==37.0.2 +importlib-metadata==4.11.4 +jeepney==0.8.0 +keyring==23.6.0 +lz4==4.0.1 +pbkdf2==1.3 +pyaes==1.6.1 +pycparser==2.21 +pycryptodome==3.14.1 +SecretStorage==3.3.2 +zipp==3.8.0 -- cgit v1.2.3