https://github.com/datadavev/looseroo
Simple web service for redirect metrics
https://github.com/datadavev/looseroo
redirect tool web
Last synced: 10 months ago
JSON representation
Simple web service for redirect metrics
- Host: GitHub
- URL: https://github.com/datadavev/looseroo
- Owner: datadavev
- License: mit
- Created: 2023-09-09T00:02:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T02:31:40.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T08:44:10.637Z (about 1 year ago)
- Topics: redirect, tool, web
- Language: Python
- Homepage: https://hopper.rslv.xyz
- Size: 197 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# looseroo
The loose roo hops along redirects.
```
$ roo --help
usage: roo [-h] [-a ACCEPT] [-u USER_AGENT] [-t TIMEOUT] [-m METHOD] [-w WHITEHOSTS] url
Report on redirect hops when dereferencing a URL
positional arguments:
url URL to dereference.
options:
-h, --help show this help message and exit
-a ACCEPT, --accept ACCEPT
Accept header value for request
-u USER_AGENT, --user-agent USER_AGENT
User-agent header value for request
-t TIMEOUT, --timeout TIMEOUT
Timeout in seconds for response
-m METHOD, --method METHOD
HTTP method to use for requests
-w WHITEHOSTS, --whitehosts WHITEHOSTS
Follow redirects on these hosts only.
```
or visit:
```
https://hopper.rslv.xyz/
```
or call the api directly:
```
https://hopper.rslv.xyz/http://n2t.net/ark:/65665/3ae126b96-aad8-4681-a8eb-56c7232cf12f
```
```json
{
"hops": [
{
"url": "http://n2t.net/ark:/65665/3ae126b96-aad8-4681-a8eb-56c7232cf12f",
"status": 302,
"content_type": "text/html; charset=iso-8859-1",
"content_length": 262,
"link": [],
"t_ms": 135.139
},
{
"url": "http://collections.nmnh.si.edu/id/ark:/65665/3ae126b96aad84681a8eb56c7232cf12f",
"status": 302,
"content_type": null,
"content_length": 0,
"link": [],
"t_ms": 98.141
},
{
"url": "https://collections.nmnh.si.edu/id/ark:/65665/3ae126b96aad84681a8eb56c7232cf12f",
"status": 302,
"content_type": "text/html; charset=iso-8859-1",
"content_length": 276,
"link": [],
"t_ms": 20.556
},
{
"url": "https://collections.nmnh.si.edu/search/ark/?ark=ark:/65665/3ae126b96aad84681a8eb56c7232cf12f",
"status": 302,
"content_type": "text/html; charset=UTF-8",
"content_length": 0,
"link": [],
"t_ms": 27.628
},
{
"url": "https://collections.nmnh.si.edu/search/ento/?ark=ark:/65665/3ae126b96aad84681a8eb56c7232cf12f",
"status": 200,
"content_type": "text/html; charset=UTF-8",
"content_length": 0,
"link": [],
"t_ms": 23.825
}
],
"start_url": "http://n2t.net/ark:/65665/3ae126b96-aad8-4681-a8eb-56c7232cf12f",
"final_url": "https://collections.nmnh.si.edu/search/ento/?ark=ark:/65665/3ae126b96aad84681a8eb56c7232cf12f",
"t_ms": 307.53326416015625,
"message": null,
"accept": "*/*",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"hopper_version": "1.7.0"
}
```