bot: muskify twitter references (untested)

This commit is contained in:
y
2023-08-24 12:23:14 -04:00
committed by parazyd
parent 9ff94cde44
commit a12510e6e1
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ while True:
for i in url:
parsed_url = urlparse(i)
if parsed_url.netloc.lower() in ['twitter.com','t.co'] or parsed_url.scheme != 'https':
if parsed_url.netloc.lower() in ['twitter.com','t.co', 'x.com'] or parsed_url.scheme != 'https':
continue
try:
reqs = requests.get(i)

View File

@@ -31,7 +31,7 @@ while True:
else:
tweetId = str(parsed_url.path).split("/")[-1]
print(f"tweet id: {tweetId}")
if not (parsed_url.netloc.lower() in ['twitter.com','t.co'] and parsed_url.scheme == 'https'):
if not (parsed_url.netloc.lower() in ['twitter.com','t.co', 'x.com'] and parsed_url.scheme == 'https'):
continue
app = Twitter()
try: