AI powered OSINT engine to discover and map 840+ social media identities across the web
Python aiartificial-intelligencedebainhackhackerhackinghackingtoolsinformationinformation-gatheringlinuxlinux-desktoposintpythonpython-scriptpython3social-mediasocialmediahackingtermuxtermux-tool
README: clickable lxask banner
arxhr0077776df2876d8
diff --git a/README.md b/README.mdindex aa43b47..211b09b 100644--- a/README.md+++ b/README.md@@ -26,6 +26,16 @@## 🐧 New from the author: lxask+<p align="center">+ <a href="https://github.com/arxhr007/lxask">+ <img+ src="https://raw.githubusercontent.com/arxhr007/Aliens_eye/main/photos/lxask-banner.png"+ alt="lxask: offline Linux command assistant. Click to open the repository."+ width="720"+ />+ </a>+</p>+**[lxask](https://github.com/arxhr007/lxask)** is a Linux command assistant that runs entirely on your own machine:describe what you want in plain English and it suggests the command. No API key, no cloud, about 1 GB on disk, no GPU.If you find Aliens Eye useful, a ⭐ on [lxask](https://github.com/arxhr007/lxask) helps a lot.diff --git a/photos/lxask-banner.png b/photos/lxask-banner.pngnew file mode 100644index 0000000..1f7f751Binary files /dev/null and b/photos/lxask-banner.png differdiff --git a/tests/test_readme.py b/tests/test_readme.pynew file mode 100644index 0000000..b99db51--- /dev/null+++ b/tests/test_readme.py@@ -0,0 +1,35 @@+"""The README's images and links: a broken image looks bad on the front page of the project."""++import pathlib+import re++ROOT = pathlib.Path(__file__).resolve().parents[1]+README = (ROOT / "README.md").read_text("utf-8")+RAW = re.compile(r"https://raw\.githubusercontent\.com/arxhr007/Aliens_eye/(?:refs/heads/)?main/([^\s\"')]+)")+++def test_every_image_the_readme_loads_from_this_repo_exists():+ paths = {match.group(1).replace("%20", " ") for match in RAW.finditer(README)}+ assert paths, "the README is expected to reference some images"+ missing = sorted(p for p in paths if not (ROOT / p).is_file())+ assert missing == []+++def test_the_lxask_banner_is_a_clickable_image_that_opens_the_repository():+ match = re.search(+ r'<a href="(https://github\.com/arxhr007/lxask)">\s*<img[^>]*src="[^"]*lxask-banner\.png"[^>]*>\s*</a>',+ README,+ )+ assert match, "expected the banner image wrapped in a link to lxask"+ assert 'alt="' in match.group(0) and 'alt=""' not in match.group(0) # readable without the image+++def test_the_banner_sits_in_the_lxask_section():+ section = README.split("New from the author: lxask", 1)[1].split("\n---", 1)[0]+ assert "lxask-banner.png" in section and "https://github.com/arxhr007/lxask" in section+++def test_the_banner_file_is_a_png_of_a_sensible_size():+ data = (ROOT / "photos" / "lxask-banner.png").read_bytes()+ assert data[:8] == b"\x89PNG\r\n\x1a\n"+ assert len(data) < 500_000 # it ships in every checkout