Skip to content
Open
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
c158978
Use Playwright for the very first request
InvisibleRain Dec 31, 2025
3730d4a
Revert "Use Playwright for the very first request"
InvisibleRain Jan 1, 2026
42443f2
Actually use playwright to obtain html_code
InvisibleRain Jan 1, 2026
fa96081
Update .gitignore
InvisibleRain Jan 1, 2026
960f082
Use different default Playwright paths on different platforms
InvisibleRain Jan 1, 2026
1f6b1f2
Fix ensure_playwright_installed reporting everything is ok after `pla…
InvisibleRain Jan 2, 2026
23391d8
Add a function to save authenticated Plawright session to a file
InvisibleRain Jan 2, 2026
b402dd0
Load playwright state filepath from config.toml
InvisibleRain Jan 2, 2026
8269d77
Allow to run `python prompt_user_login.py`
InvisibleRain Jan 2, 2026
b9d68b4
Save playwright state file to the filepath from config.toml
InvisibleRain Jan 2, 2026
caf0c2a
Only allow the current user to access playwright state file to protec…
InvisibleRain Jan 2, 2026
da38d59
Fix a memeory leak and improve exception handling
InvisibleRain Jan 2, 2026
9b4dc4e
typo
InvisibleRain Jan 2, 2026
9a07a7c
Move get_html() to parser_cls to avoid spaghetti code
InvisibleRain Jan 2, 2026
24f56b1
Remove unnecessary config parsing
InvisibleRain Jan 3, 2026
5bde40e
FIXME: add proxy support for get_html
InvisibleRain Jan 3, 2026
7a60145
Remove unused dependencies and comments
InvisibleRain Jan 3, 2026
546b803
Remove the unused stop_event parameter
InvisibleRain Jan 3, 2026
ba2ca50
Use playwright for parsing views
InvisibleRain Jan 3, 2026
286e3f7
FIXME: save playwright context containing browser after each request
InvisibleRain Jan 3, 2026
d58abda
Add instructions on using prompt_user_login.py to readme
InvisibleRain Jan 3, 2026
05fb7fe
Don't try to save playwright state file after a failed request
InvisibleRain Jan 3, 2026
5587235
Add a default state.json
InvisibleRain Jan 3, 2026
1523de5
Make sure playwright_state_file is configured before trying to save it
InvisibleRain Jan 3, 2026
e1aa353
Use string interpolation instead of string concatenation to avoid typ…
InvisibleRain Jan 22, 2026
cd8d21f
Use string interpolation instead of string concatenation to avoid typ…
InvisibleRain Jan 22, 2026
bb12437
Add http status code handling to get_html
InvisibleRain Jan 3, 2026
609fddc
Update flet to 0.80.1 so the parser can run on modern Linux
InvisibleRain Jan 3, 2026
48326d0
Unambigiously refer to self.config
InvisibleRain Jan 4, 2026
763af98
Add helper in gui for playwright state_file
InvisibleRain Jan 4, 2026
e751b1a
Add GUI for configuring Playwright State file
InvisibleRain Jan 3, 2026
1b47f00
Add a button to login into an Avito account to the GUI
InvisibleRain Jan 4, 2026
1e60290
Fix a typo that caused the parsing to fail
InvisibleRain Jan 4, 2026
daf77b1
Reccomend to either log in or enable proxy in error messages
InvisibleRain Jan 4, 2026
f8a3a3d
Add help message for prompt_user_login in GUI
InvisibleRain Jan 4, 2026
b05d1e6
Use ft.run instead of ft.app
InvisibleRain Jan 4, 2026
c916aea
Fix ui visibility not changing after start_btn is clicked
InvisibleRain Jan 4, 2026
5bebf74
Use a platform-independent way to check the user OS
InvisibleRain Jan 5, 2026
6f028cc
Use a more ambigous log message when saving playwright state
InvisibleRain Jan 5, 2026
5600cf7
Excplicitly update flet-desktop for users upgrading wheels from older…
InvisibleRain Jan 5, 2026
4c51bdb
Verify that we are logged in into an Avito account
InvisibleRain Jan 22, 2026
906060a
Call is_avito_account_logged_in from get_html
InvisibleRain Jan 22, 2026
771efde
Fix unreachable code
InvisibleRain Jan 20, 2026
bc427a2
Fix Pylint error
InvisibleRain Jan 20, 2026
ebc6a53
Improve comment
InvisibleRain Jan 21, 2026
3e36fd4
Treat `playwright_state_file=""` as the state file being disabled
InvisibleRain Jan 21, 2026
7bc559e
Revert "Fix unreachable code"
InvisibleRain Jan 22, 2026
fad8977
Revert "Use a more ambigous log message when saving playwright state"
InvisibleRain Jan 22, 2026
1c0bf0a
Revert "Fix a typo that caused the parsing to fail"
InvisibleRain Jan 22, 2026
1ae7c3b
Revert "Call is_avito_account_logged_in from get_html"
InvisibleRain Jan 22, 2026
1b0f1d8
Revert "Reccomend to either log in or enable proxy in error messages"
InvisibleRain Jan 22, 2026
9717236
Revert "Add http status code handling to get_html"
InvisibleRain Jan 22, 2026
7782388
Revert "Use string interpolation instead of string concatenation to a…
InvisibleRain Jan 22, 2026
7ca60bb
Revert "Make sure playwright_state_file is configured before trying t…
InvisibleRain Jan 22, 2026
779ca0e
Revert "Don't try to save playwright state file after a failed request"
InvisibleRain Jan 22, 2026
ba10139
Revert "FIXME: save playwright context containing browser after each …
InvisibleRain Jan 22, 2026
bb9e555
Revert "Use playwright for parsing views"
InvisibleRain Jan 22, 2026
29121be
Revert "Remove the unused stop_event parameter"
InvisibleRain Jan 22, 2026
c564cf1
Revert "FIXME: add proxy support for get_html"
InvisibleRain Jan 22, 2026
251af73
Revert "Remove unnecessary config parsing"
InvisibleRain Jan 22, 2026
e6733b7
Revert "Move get_html() to parser_cls to avoid spaghetti code"
InvisibleRain Jan 22, 2026
38267b2
Revert "Fix a memeory leak and improve exception handling"
InvisibleRain Jan 22, 2026
6783faa
Revert "Actually use playwright to obtain html_code"
InvisibleRain Jan 22, 2026
a5d6919
Add a function to obtain sessid cookie
InvisibleRain Jan 23, 2026
4efd518
Make sure playwright_state_file is not an empty string
InvisibleRain Jan 23, 2026
10b9dfe
Fix: return sessid value instead of the key
InvisibleRain Jan 26, 2026
4f8a63e
Set sessid cookie from playwright state file when loading cookies json
InvisibleRain Jan 26, 2026
55f647a
Load cookies from file before each request
InvisibleRain Jan 26, 2026
f734186
Treat `playwright_state_file=""` as the state file being disabled
InvisibleRain Jan 27, 2026
268ab7b
Add a function to convert between cookie formats
InvisibleRain Jan 27, 2026
b0573ce
Parse config.toml before a request
InvisibleRain Jan 27, 2026
cf955bf
Save and return cookies in playwright format
InvisibleRain Jan 27, 2026
6a32175
Add a function to check if sessid cookie is present in cookies.json
InvisibleRain Jan 27, 2026
6692ae6
Load session cookies before each request
InvisibleRain Jan 27, 2026
dd48f27
Use a less ambigous warning when looking for sessid in cookies.json
InvisibleRain Jan 27, 2026
db9d1e5
Reccomend to either log in or enable proxy in error messages
InvisibleRain Jan 27, 2026
a713633
Revert "Set sessid cookie from playwright state file when loading coo…
InvisibleRain Jan 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow to run python prompt_user_login.py
  • Loading branch information
InvisibleRain committed Jan 3, 2026
commit 8269d77e2b40f19eb3233152053bcd1b8e99284d
3 changes: 3 additions & 0 deletions prompt_user_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ async def prompt_user_login(playwright: Playwright):
async def wrapper():
async with async_playwright() as playwright:
await prompt_user_login(playwright)

if __name__ == "__main__":
asyncio.run(wrapper())