{"id":21348778,"url":"https://github.com/macmod/namescraper","last_synced_at":"2025-07-12T17:33:06.138Z","repository":{"id":259779294,"uuid":"608706230","full_name":"Macmod/NameScraper","owner":"Macmod","description":"A Selenium scraper for public domain search tools.","archived":false,"fork":false,"pushed_at":"2024-10-27T20:31:20.000Z","size":42,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T23:26:39.520Z","etag":null,"topics":["bug-bounty","bugbounty","dns","dnsrecon","domain","osint","pentest","reconnaissance","scraper","security","security-tools","securitytrails","selenium","subdomain","subdomain-enumeration","viewdns","whoisxmlapi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Macmod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T15:15:48.000Z","updated_at":"2025-03-29T22:15:28.000Z","dependencies_parsed_at":"2024-10-28T10:20:28.829Z","dependency_job_id":null,"html_url":"https://github.com/Macmod/NameScraper","commit_stats":null,"previous_names":["macmod/namescraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Macmod/NameScraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macmod%2FNameScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macmod%2FNameScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macmod%2FNameScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macmod%2FNameScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Macmod","download_url":"https://codeload.github.com/Macmod/NameScraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macmod%2FNameScraper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025651,"owners_count":23699795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bug-bounty","bugbounty","dns","dnsrecon","domain","osint","pentest","reconnaissance","scraper","security","security-tools","securitytrails","selenium","subdomain","subdomain-enumeration","viewdns","whoisxmlapi"],"created_at":"2024-11-22T02:26:09.526Z","updated_at":"2025-07-12T17:33:05.840Z","avatar_url":"https://github.com/Macmod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NameScraper \n\n**NameScraper** is a Selenium scraper for public domain search tools. NameScraper uses the [Undetected Chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver) to perform queries in various platforms and collect the results.\n\n## Disclaimer\n\nThis tool was developed for personal research purposes. I am not responsible for whatever actions are performed with this tool and I will not be maintaining it extensively or improving it to bypass captchas or other complex rate-limiting controls that these third-party tools may implement in the future.\n\n\n## Supported Lookups\n\nThis tool can perform and collect the results for the following tools \u0026 lookups:\n\n### SecurityTrails\n\nIn order to use this module you must have a SecurityTrails account, authenticate with it and save the contents of your `SecurityTrails` session cookie to a file named `session.txt`. Then run the tool with the appropriate `--lookup` flag:\n\n* DNS (`dns`)\n* Historical DNS (`historicaldns`)\n* Subdomains (`subdomains` - **default lookup**)\n* Reverse CNAME (`reversecname`)\n* Reverse NS (`reversens`)\n* Reverse MX (`reversemx`)\n\n### ViewDNS\n\n* ASN Lookup (`asnlookup`)\n* Abuse Lookup (`abuselookup`)\n* Chinese Firewall Test (`chinesefirewall`)\n* DNS Record (`dnsrecord` - **default lookup**)\n* DNS Report (`dnsreport`)\n* DNSSEC (`dnssec`)\n* Free Email (`freeemail`)\n* HTTP Headers (`httpheaders`)\n* IP History (`iphistory`)\n* IP Location (`iplocation`)\n* Iran Firewall Test (`iranfirewall`)\n* Is my site down (`ismysitedown`)\n* MAC Lookup (`maclookup`)\n* Ping (`ping`)\n* Portscan (`portscan`)\n* Propagation (`propagation`)\n* Reverse DNS (`reversedns`)\n* Reverse IP (`reverseip`)\n* Reverse MX (`reversemx`)\n* Reverse NS (`reversens`)\n* Reverse Whois (`reversewhois`)\n* Spam DB lookup (`spamdblookup`)\n* Traceroute (`traceroute`)\n* Whois (`whois`)\n\nPlease note that ViewDNS's output format is not standard - it varies a lot depending on the type of the lookup, so the results are converted to text using the [html2text](https://github.com/Alir3z4/html2text) library. You'll probably have to parse the results somehow after using this tool.\n\n### WhoisXMLAPI\n\nIn order to use this module you must have a WhoisXMLAPI account, authenticate with it and save the contents of your `emailverification_session` session cookie to a file named `session.txt`. Then run the tool with the appropriate `--lookup` flag:\n\n* Subdomains (`subdomains` - **default lookup**)\n* Reverse NS (`reversens`)\n* Whois (`whois`)\n* Whois History (`whoishistory`)\n* Reverse Whois (`reversewhois`)\n* DNS Lookup (`dnslookup`)\n* DNS History (`dnshistory`)\n* Reverse MX (`reversemx`)\n* IP Geolocation (`ipgeolocation`)\n* IP Netblocks (`ipnetblocks`)\n* Website Contacts (`websitecontacts`)\n* Website Categorization (`websitecategory`)\n* Domain Availability (`domainavailability`)\n* Email Verification (`emailverification`)\n\nNote that currently this scraper has the limitation of using the `Copy to clipboard` feature of WhoisXMLAPI to copy the results as a JSON object, therefore you must *not use the clipboard for other purposes* while it's running.\n\n# Prerequisites\n\n- [Selenium](https://github.com/SeleniumHQ/Selenium)\n- [Undetected Chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver)\n\nRun the following to install the Python requirements:\n```python\n$ pip install -r requirements.txt\n```\n\n# Usage\n\nRun the tool with:\n\n```bash\n$ python namescraper.py --query \u003cDOMAIN\u003e --output results.txt \u003cMODULE\u003e --lookup \u003cLOOKUP_TYPE\u003e\n```\n\nIf an output file is not provided with `--output`, the results are simply going to be printed to the screen. If you just want to use the default lookup for the provider, you can also omit the lookup type:\n\n```bash\n$ python namescraper.py --query \u003cDOMAIN\u003e \u003cMODULE\u003e\n```\n\n## Optional flags\n- `--queriesfile` - Look up all lines from a file in the same session instead of providing a single query.\n- `--timeout` - Default explicit timeout to use in Selenium when looking for elements in the page.\n- `--headless` - Run the webdriver in headless mode.\n\n# Contributing\n\nContributions are welcome by [opening an issue](https://github.com/Macmod/NameScraper/issues/new) or by [submitting a pull request](https://github.com/Macmod/NameScraper/pulls). If you find any bugs please let me know - I don't have many test environments to validate every edge case.\n\n# Todo\n* Perform more tests with all supported lookups and features to identify possible bugs\n* Improve scraper logic to increase efficiency and avoid race conditions\n* Improve project structure and instructions\n* Improve error handling\n* Support for explicit authentication credentials with automatic reauthentication when the session expires\n* SecurityTrails - Improve stability of simple DNS lookups (sometimes it works, sometimes it doesn't...)\n* SecurityTrails - Paginate historical DNS lookups\n* WhoisXMLAPI - Use an alternate method of getting results in JSON without relying on the clipboard\n* WhoisXMLAPI - Stop collection if the max limit for public queries is reached\n\n# License\nThe MIT License (MIT)\n\nCopyright (c) 2023 Artur Henrique Marzano Gonzaga\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacmod%2Fnamescraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacmod%2Fnamescraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacmod%2Fnamescraper/lists"}