-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
93 lines (85 loc) · 4.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<html>
<head>
<title>List your torrent data on the web - Torrext</title>
<meta name="verify-v1" content="aAfn60rD5X5xBAnp9dcB9dfd97hTv/omGkDKrbKCbgs=" />
<link rel="alternate" type="application/rss+xml" title="Torrext freshest torrents" href="http://torrext.appspot.com/rss.xml" />
<link rel="stylesheet" href="/s/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="/s/blueprint/print.css" type="text/css" media="print">
<!--[if lt IE 8]>
<link rel="stylesheet" href="/s/blueprint/ie.css" type="text/css" media="screen, projection">
<![endif]-->
</head>
<body>
<div class="container">
<div class="span-24 prepend-2"><h1><a href="/" id="sitename">torrext</a></h1>
<small>“Information is a source of learning. But unless it is organized, processed, and available to the right people in a format for decision making, it is a burden, not a benefit.” - William Pollard</small></div>
<div><hr /><form action="/upload" method="post" enctype="multipart/form-data">
<div class="span-13 prepend-1 append-10"><label>.torrent file URL:</label><br /><input type="text" name="torrent_url" class="title span-12" /></div>
<div class="span-13 prepend-1"><label>OR File:</label><br /><input type="file" name="file" id="file_input" width="490px" class="title span-12" /></div>
<div class="span-8 last"><label>And:</label><br /><input type="submit" name="upload" value="UPLOAD!" class="title span-8"></div>
</form><hr /></div>
<div class="span-11 prepend-1">
<h2>Most recent torrents</h2>
<ul>
{% for torrent in torrents %}
<li><a href="/{{ torrent.info_hash }}">{{ torrent.info_hash }}</a></li>
{% endfor %}
</ul>
</div>
<div class="span-12 last">
<strong>What?</strong><br />
Upload a .torrent to a web server and get it listed here.<br />
Link to the page on emails, IMs, or whatever Social Network is en vogue this week.<br /><br />
<strong>Keep in mind</strong><br />
No torrent files hosted here.<br />
No trackers here either.<br />
Data in the database is not indexed so searching it is impossible.<br />
Torrents are identified only by info_hash.<br /><br />
<strong>API?</strong><br />
not a problem...<br />
Send HTTP POST requests to /upload<br />
If you want to send a file just put it in the "file" argument,<br />
If you prefer that torrext fetches the file from an http(s)<br />
server put the url to the file in "torrent_url" argument<br />
https is available for secure uploads<br /><br />
If everything goes has planed you'll get a 302 redirect
to the page of the submited torrent<br />
in case of errors you'll get a message<br /><br />
Because torrext is still being developed it is best to check the code
and see what messages are returned in each case: <a href="http://github.com/medecau/torrext/blob/master/upload.py">upload.py</a><br /><br />
<strong>Hate MIME?</strong><br />
Send a request with the file contents base64 encoded in the "fileb64" argument,<br />
torrext will decode and use that. <small>let me know of any problems on the <a href="http://medecau.github.com/torrext">project page</a></small><br /><br />
<strong>Giving back</strong><br \>
So you want to use the data stored in torrext in whatever app you want?<br \>
Not a problem.<br \>
There's am RSS feed that has the last 250 uploads and each torrent text is cleanly available by requesting its page with a raw=1 parameter.<br \>
Don't like the xml RSS feed?<br \>
Here's a <a href="/feed.txt">listing in new line separated values</a>.<br \><br \>
That is all.<br />
</div>
<div class="span-24"><hr /><a href="/rss.xml">RSS<small>Cloud</small></a> - <a href="http://medecau.github.com/torrext">kopimi</a> - <a href="http://appspot.com">thanks!</a> - <a href="#" onclick="UserVoice.Popin.show(); return false;">feedback</a></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4146423-4");
pageTracker._trackPageview();
} catch(err) {}</script>
<script type="text/javascript">
var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
</script>
<script type="text/javascript">
UserVoice.Popin.setup({
key: 'torrext',
host: 'torrext.uservoice.com',
forum: 'general',
lang: 'en'
})
</script>
</body>
</html>