AI powered OSINT engine to discover and map 840+ social media identities across the web
Python aiartificial-intelligencedebainhackhackerhackinghackingtoolsinformationinformation-gatheringlinuxlinux-desktoposintpythonpython-scriptpython3social-mediasocialmediahackingtermuxtermux-tool
fix: check YouTube by @handle
arxhr0070eb7d5fe47df
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d8780ca..535d8c2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,10 @@- Every site's check now has an overall deadline (about 80 seconds with default settings),after which it is reported as `Timeout`. A scan is only as fast as its slowest site, anda check that never returned kept the whole scan open.+- **YouTube channels were mostly reported as not found.** The check asked for+ `youtube.com/<name>`, an address only older channels have. It now asks for+ `youtube.com/@<name>`, the handle every channel has. Of six real channels that came back+ "Not Found", five are now found; the sixth no longer exists.- Cancelling a scan from code that uses the API (for example with a timeout) left itsworker tasks running.diff --git a/src/aliens_eye/data/sites.json b/src/aliens_eye/data/sites.jsonindex a41d646..5fc988a 100644--- a/src/aliens_eye/data/sites.json+++ b/src/aliens_eye/data/sites.json@@ -233,7 +233,7 @@"devrant": "https://devrant.com/users/{}","youpic": "https://youpic.com/photographer/{}/","slashdot": "https://slashdot.org/~{}",- "youtube": "https://youtube.com/{}",+ "youtube": "https://www.youtube.com/@{}","reddit": "https://www.reddit.com/user/{}","geocaching": "https://www.geocaching.com/p/default.aspx?u={}","eintracht": "https://community.eintracht.de/fans/{}",diff --git a/tests/test_urlmatch.py b/tests/test_urlmatch.pyindex a101385..142c510 100644--- a/tests/test_urlmatch.py+++ b/tests/test_urlmatch.py@@ -179,3 +179,14 @@ async def test_fetch_page_does_not_follow_a_redirect_inward(page_server, monkeypasync def test_fetch_page_never_raises_on_bad_urls(url):result = await api.fetch_page(url)assert result["error"] and result["html"] == ""+++def test_youtube_is_checked_by_handle():+ """youtube.com/<name> exists only for older channels; every channel has an @handle."""+ from aliens_eye import api++ assert api.profile_url("youtube", "mkbhd") == "https://www.youtube.com/@mkbhd"+ assert api.match_profile_url("https://www.youtube.com/@mkbhd") == [("youtube", "mkbhd")]+ assert api.match_profile_url("https://youtube.com/@MKBHD/videos") == [] # a tab, not the profile+ assert api.match_profile_url("https://www.youtube.com/c/mkbhd") == [("youtube channel", "mkbhd")]+ assert api.match_profile_url("https://www.youtube.com/watch?v=abc") == []