We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a6732 commit 0f824c9Copy full SHA for 0f824c9
1 file changed
scripts/analyze_tech_article.py
@@ -335,6 +335,9 @@ def main():
335
post_url = post_ref.get("url") if post_ref else args.url
336
post_id = post_ref.get("id") if post_ref else None
337
338
+ if post_url.startswith("https://twitter.com") or post_url.startswith("https://x.com"):
339
+ post_url = "https://xcancel.com" + post_url[post_url.index("/", 8):]
340
+
341
if not post_url.startswith("http"):
342
print(f"Error: URL must start with http:// or https://", file=sys.stderr)
343
sys.exit(1)
0 commit comments