Welcome Guest ( Log In | Register )

(Today, 08:42 AM) smitty10130
--
.tor
(Today, 05:15 AM)
--
Ugly Americans 1x01 Pilot (torrent) has just been added.
(Today, 05:10 AM)
--
Ugly Betty 4x16 All The World's A Stage (torrent) has just been added.
(Today, 03:14 AM)
--
South Park 14x01 Sexual Healing (torrent) has just been added.
(Today, 02:57 AM)
--
All New Users Please confirm your valid eMail address as soon as possible, it will be authorised by an Admin. Thank you.
(Today, 02:07 AM)
--
Mercy 1x17 There Is No Room For You On My Ass (torrent) has just been added.
(Today, 02:03 AM)
--
Scrubs 9x13 Our Thanks (torrent) has just been added.
(Yesterday, 10:00 PM) richmond
--
hiya mojo
(Yesterday, 09:49 PM) richmond
--
hi all
(Yesterday, 05:58 PM) xena1968
--
holla
(Yesterday, 07:56 AM)
--
All New Users Please confirm your valid eMail address as soon as possible, it will be authorised by an Admin. Thank you.
(Yesterday, 07:30 AM)
--
Parenthood (2010) 1x03 The Deep End of The Pool (torrent) has just been added.
(Yesterday, 06:54 AM)
--
Justified 1x01 Fire in the Hole (torrent) has just been added.
(Yesterday, 05:51 AM)
--
FlashForward 1x10s What Did You See Special (torrent) has just been added.
(Yesterday, 05:44 AM)
--
Southland 2x03 U-Boat (torrent) has just been added.
ShoutOut! © InvisionMint
Float?

Introducing: K2

This topic is about Introducing: K2, the author, phrostwave, wrote about: SVN: http://svn.xp-dev.com/svn/k2/ Readme: http://svn.xp-dev.com/svn/k2/README mkdir test && chmod 755 test && cd test && svn co svn://kosmodrom.64x.o ... To read more just scroll down

> 

If you would like to advertise your Hosting, Services or Products on Filesoup, please contact Geeker for a quote.

 
Reply to this topicStart new topic
> Introducing: K2, Crawler / Backend
phrostwave
post Oct 26 2009, 04:42 PM
Post #1


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




SVN: http://svn.xp-dev.com/svn/k2/
Readme: http://svn.xp-dev.com/svn/k2/README <DO IT

This is essentially a crawler written nearly from scratch (save for reusing some usual libraries until I can find better). It works in a very crude fashion in comparison to Ibitzy, but I think it gets the job done. It can easily queue up 300 torrents in a minute, processing them (get the torrent, decode some stuff, scrape, insert) will obviously take longer, but it uses cURL and MySQLi to help with _some_ performance.

Enjoy.

Edit

CODE
mkdir test && chmod 755 test && cd test && svn co svn://kosmodrom.64x.org/k2/trunk/


ViewVC: http://svn.kosmodrom.64x.org/viewvc/k2/trunk/
Tarballed trunk: http://svn.kosmodrom.64x.org/viewvc/k2/trunk/?view=tar

This post has been edited by Geeker: Oct 28 2009, 09:58 AM
Reason for edit: edited as requested
Go to the top of the page
 
+
major9
post Oct 27 2009, 05:14 PM
Post #2


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





Nice. But you should have made it a plugin based system like Ibitzy.

This post has been edited by major9: Oct 27 2009, 05:15 PM
Go to the top of the page
 
+
phrostwave
post Oct 27 2009, 10:50 PM
Post #3


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




QUOTE (major9 @ Oct 27 2009, 01:14 PM) *
Nice. But you should have made it a plugin based system like Ibitzy.

Agreed, even though this is only a small preview, I do plan on adding some functionality between or for more sites (IsoHunt being my biggest goal) at some point here soon. The other thing I'm debating is an actual front-end, but I don't want this to be another all-in-one indexer, so that probably won't happen.

Also, (if a mod wouldn't mind editing the OP, since I can't anymore), I've moved the repository over to my site:

CODE
mkdir test && chmod 755 test && cd test && svn co svn://kosmodrom.64x.org/k2/trunk/ .

ViewVC: http://svn.kosmodrom.64x.org/viewvc/k2/trunk/
Tarballed trunk: http://svn.kosmodrom.64x.org/viewvc/k2/trunk/?view=tar

[Edit]

Revision 5 contains working mininova and Isohunt plugins.

This post has been edited by phrostwave: Oct 28 2009, 08:40 AM
Go to the top of the page
 
+
sceek
post Oct 28 2009, 10:28 AM
Post #4
Newbie
Group Icon

Group: Member
Posts: 9
Joined: 10-March 08
Member No.: 42,328



Can i use this whit xbtit or is there an version of ibitzy avabile.
Go to the top of the page
 
+
major9
post Oct 28 2009, 06:21 PM
Post #5


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





QUOTE (sceek @ Oct 28 2009, 11:28 AM) *
Can i use this whit xbtit or is there an version of ibitzy avabile.


You'll need to make some changes for XBTIT. You can ask me to do the custom work rolleyes.gif
Go to the top of the page
 
+
phrostwave
post Oct 29 2009, 01:00 AM
Post #6


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




QUOTE (sceek @ Oct 28 2009, 06:28 AM) *
Can i use this whit xbtit or is there an version of ibitzy avabile.

You could easily modify this to work with xbtit, although I don't see the point in doing so since you're already running a tracker.

Also, revision 10 now contains a BTJunkie plugin. This is interesting because there are now two methods to retrieve data from an XML feed:

"Atom" style: Isohunt and Mininova use this, using an "enclosure" node tag with an attribute containing the torrent url
"RSS" style: BTJunkie uses this, using the standard "item" parent node tag with a child tag ("guid", in this case) containing the url (which needs to be transformed slightly to point to the correct location).

TL;DR: Basically, you can read and import from two different styles of XML feeds.

[Edit]

Revision 15 seems to hold its own, so I've branched this off into version 0.1:

ViewVC: http://svn.kosmodrom.64x.org/viewvc/k2/branches/0.1/
Tarball: http://svn.kosmodrom.64x.org/viewvc/k2/bra...s/0.1/?view=tar

This post has been edited by phrostwave: Oct 29 2009, 06:30 AM
Go to the top of the page
 
+
major9
post Oct 29 2009, 03:06 PM
Post #7


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





Some sites have a firewall kind of thing blocking if you download more than a certain no. of torrents in a certain time.
Go to the top of the page
 
+
phrostwave
post Oct 29 2009, 07:16 PM
Post #8


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




QUOTE (major9 @ Oct 29 2009, 11:06 AM) *
Some sites have a firewall kind of thing blocking if you download more than a certain no. of torrents in a certain time.


Ironic, because some of their HTML pages they serve are larger than the torrent files themselves. Also, BTJunkie and bittorrent.am plugins will ban you from crawling new torrents, but hey, those two sites index others and bump their success off others bandwidth, so I'll make sure to return the favor right back at 'em cool.gif
Go to the top of the page
 
+
major9
post Nov 1 2009, 08:27 AM
Post #9


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





Plugins looks much more easier than Ibitzy.
Go to the top of the page
 
+
phrostwave
post Nov 1 2009, 11:17 PM
Post #10


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




Some recent changes up to Revision 31 & Branch 0.3:

- includes 7 example plugins
- no longer depends on the two class files
- inserts announce-list in serialized format (use unserialize($data) to flop it back into a normal array)
- inserts the contained metadata total filesize, serialized file paths / names / lengths, torrent creation date, and what it was created by.

The announce-list is yet to be used for mutli-tracker scraping on a single torrent, but I plan on making it use the first tracker that responds.

[Edit]
Revision 39 of the trunk can pretty much support multiple trackers, but note that it breaks when the first tracker responds at this revision.
Also, Rev 39 was branched into 0.4: http://svn.kosmodrom.64x.org/viewvc/k2/branches/0.4/

And for the record, I've been able to queue up roughly about 400 torrents in under 30 seconds, and process around 100 in 3-5 minutes, depending on everyones overall traffic.

This post has been edited by phrostwave: Nov 2 2009, 03:01 AM
Go to the top of the page
 
+
major9
post Nov 2 2009, 02:02 PM
Post #11


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





I noticed some important parts of the plugin in k2-queue.php. I think you should move those to the corresponding plugin files. It'll help the people who develop additional plugins if all plugin codes are centralized.
Go to the top of the page
 
+
phrostwave
post Nov 7 2009, 06:48 AM
Post #12


somicidal
Group Icon

Group: Community Leader
Received 4 Thanks
Posts: 29
Joined: 23-January 08
From: Factory 33
Member No.: 119




Revision 72 seems to be pretty stable (save for really strange scrape responses, and indexers that ban), a new feature being that it is now capable of caching whatever you have crawled at torrage (info at http://torrage.com/automation.php), and the export links back to the file hosted on torrage.

Also, I might be adding the above plugin layout at some point.

This post has been edited by phrostwave: Nov 7 2009, 06:49 AM
Go to the top of the page
 
+
BTloader
post Dec 17 2009, 05:02 PM
Post #13


Member
Group Icon

Group: Member
Posts: 27
Joined: 12-May 05
From: Sweden
Member No.: 24,370



Where can i download the lastest version of K2?
The site (http://svn.kosmodrom.64x.org/viewvc/k2/branches/0.4/) is down/offline.

Whats the main difference between K2 and Ibitzy?
Go to the top of the page
 
+
thorin
post Dec 19 2009, 07:18 AM
Post #14


Member
Group Icon

Group: Member
Posts: 18
Joined: 31-May 07
Member No.: 34,112



svn down mellow.gif
Go to the top of the page
 
+
major9
post Dec 19 2009, 05:51 PM
Post #15


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





@BTLoader - Ibitzy hasn't been updated for a while so none of the plugins work.
Go to the top of the page
 
+
BTloader
post Dec 19 2009, 06:16 PM
Post #16


Member
Group Icon

Group: Member
Posts: 27
Joined: 12-May 05
From: Sweden
Member No.: 24,370



QUOTE (major9 @ Dec 19 2009, 06:51 PM) *
@BTLoader - Ibitzy hasn't been updated for a while so none of the plugins work.

I know that the current version of Ibitzy is old, it was not what I asked.
I asked what the difference was between Ibitzy and K2.
And the mininova-plugin works, but not the categories.
Go to the top of the page
 
+
major9
post Dec 20 2009, 04:05 AM
Post #17


Advanced Member
Group Icon

Group: Contributor+
Received 12 Thanks
Posts: 597
Joined: 13-November 04
Member No.: 264





K2 has more features, I think.
Btw. Mininova plugin is useless now as they've removed all their torrents except for their Content Distribution ones.
Go to the top of the page
 
+
thebrass
post Dec 24 2009, 06:10 PM
Post #18
Advanced Member
Group Icon

Group: Community Leader
Posts: 179
Joined: 25-June 04
Member No.: 22,212



This sounded interesting and was going to check it out but -

Firefox can't find the server at svn.kosmodrom.64x.org. or

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/2.2.11 (Ubuntu) DAV/2 PHP/5.2.6-3ubuntu4.4 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g mod_wsgi/2.3 Python/2.6.2 SVN/1.6.6 Server at svn.xp-dev.com Port 80


if you don't wish someone to check it out why post it ?
regards
thebrass
Go to the top of the page
 
+
nat98
post Feb 16 2010, 11:42 PM
Post #19
Advanced Member
Group Icon

Group: Member
Posts: 67
Joined: 17-December 03
Member No.: 88



Any one got a copy of this pls, could really do with it..

thx

This post has been edited by nat98: Feb 16 2010, 11:42 PM
Go to the top of the page
 
+

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Your Ad Here


RSS Lo-Fi Version | SEO by MinervaSEO © Icelabz.net Time is now: 18th March 2010 - 05:35 PM