https://github.com/taext/torthisfile
Tor This File - download file using random IP and user-agent
https://github.com/taext/torthisfile
Last synced: 5 months ago
JSON representation
Tor This File - download file using random IP and user-agent
- Host: GitHub
- URL: https://github.com/taext/torthisfile
- Owner: taext
- Created: 2019-11-10T22:45:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T13:23:18.000Z (over 5 years ago)
- Last Synced: 2025-02-01T11:35:13.427Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 7.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```python
import torthisfile as ttf # wget https://v1d.dk/z/ttf.zip
```
```python
ttf.about()
```
Download file via Tor (with random IP and user-agent)
v2.08 - November 11th 2019 - by github/taext
```python
ttf.installation_guide()
```
1. apt install tor
```python
ttf.download("http://nytimes.com") # defaults to download to ~/Downloads/
```
Restarted Tor service
Waiting 1 second for Tor service restart to take effect...
Tor URL: 185.220.102.7
Random User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/85.8.5 (KHTML, like Gecko) Safari/85
```python
ttf.download("http://nytimes.com", download_folder="~/Downloads") # optionally specify download_folder
```
Restarted Tor service
Waiting 1 second for Tor service restart to take effect...
Tor URL: 109.70.100.23
Random User-Agent: Mozilla/5.0 (Windows NT 4.0; U) Opera 6.05 [en]
```python
ttf.user_guide() # link to this user-guide (https://v1d.dk/h/ttf.htm)
ttf.syntax_highlight_code() # link to code with syntax highlighting (https://v1d.dk/h/ttf.png)
```