File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " ms-python.vscode-pylance" ,
4+ " ms-python.python" ,
5+ " ms-python.debugpy" ,
6+ " charliermarsh.ruff"
7+ ]
8+ }
Original file line number Diff line number Diff line change 33 "configurations" : [
44 {
55 "name" : " Python: Current File" ,
6- "type" : " python " ,
6+ "type" : " debugpy " ,
77 "request" : " launch" ,
88 "program" : " ${file}" ,
99 "console" : " integratedTerminal" ,
1010 "justMyCode" : false
1111 }
1212 ]
13- }
13+ }
Original file line number Diff line number Diff line change 11{
2- "flake8.args" : [],
32 "editor.unicodeHighlight.ambiguousCharacters" : false ,
4- "python.analysis.typeCheckingMode" : " basic"
5- }
3+ "python.analysis.typeCheckingMode" : " basic" ,
4+ "editor.codeActionsOnSave" : {
5+ "source.organizeImports" : " explicit" ,
6+ "source.fixAll" : " explicit"
7+ },
8+ }
Original file line number Diff line number Diff line change 1+ import os
2+ import urllib .request
3+ from pathlib import Path
4+ from typing import Optional
5+
6+ import login as login
17from twitter_openapi_python import (
2- TwitterOpenapiPython ,
3- TimelineTimelineCursor ,
48 MediaExtended ,
9+ TimelineTimelineCursor ,
510 TweetApiUtilsData ,
11+ TwitterOpenapiPython ,
612)
7- from typing import Optional
8- import login as login
9- import urllib .request
10- import os
11- from pathlib import Path
12-
1313
1414cookies_dict = login .login ().get_cookies ().get_dict ()
1515𝕏 = TwitterOpenapiPython ().get_client_from_cookies (cookies = cookies_dict )
Original file line number Diff line number Diff line change 11import json
2-
32from pathlib import Path
4- from tweepy_authlib import CookieSessionUserHandler
3+
54from requests .cookies import RequestsCookieJar
5+ from tweepy_authlib import CookieSessionUserHandler
66
77
88def login ():
Original file line number Diff line number Diff line change 11import datetime
2- from twitter_openapi_python import TwitterOpenapiPython
3- import login as login
42
3+ import login as login
4+ from twitter_openapi_python import TwitterOpenapiPython
55
66cookies_dict = login .login ().get_cookies ().get_dict ()
77𝕏 = TwitterOpenapiPython ().get_client_from_cookies (cookies = cookies_dict )
Original file line number Diff line number Diff line change 1- from twitter_openapi_python import TwitterOpenapiPython
2-
3-
41import login as login
52import tweepy
6-
3+ from twitter_openapi_python import TwitterOpenapiPython
74
85auth_handler = login .login ()
96cookies_dict = auth_handler .get_cookies ().get_dict ()
Original file line number Diff line number Diff line change 1- from twitter_openapi_python import TwitterOpenapiPython
2- import login as login
3-
4-
5- import urllib .request
6- from urllib .parse import urlparse
71import os
2+ import urllib .request
83from pathlib import Path
4+ from urllib .parse import urlparse
5+
6+ import login as login
7+ from twitter_openapi_python import TwitterOpenapiPython
98
109cookies_dict = login .login ().get_cookies ().get_dict ()
1110𝕏 = TwitterOpenapiPython ().get_client_from_cookies (cookies = cookies_dict )
Original file line number Diff line number Diff line change 33 "configurations" : [
44 {
55 "name" : " Python: Current File" ,
6- "type" : " python " ,
6+ "type" : " debugpy " ,
77 "request" : " launch" ,
88 "program" : " ${file}" ,
99 "console" : " integratedTerminal" ,
1010 "justMyCode" : false
1111 }
1212 ]
13- }
13+ }
You can’t perform that action at this time.
0 commit comments