My Assistant
Logged in as: OPPZeroCool ( Log Out )
My Controls · View New Posts · My Assistant · My Friends · 1 New Messages
If you would like to advertise your Hosting, Services or Products on Filesoup, please contact Geeker for a quote.
T Xore addons |
May 10
2007, 08:22 PM
Post #16
| |
Spam Soup Group: BT Community Leader Posts: 802 Joined: 11-August 04 Member No.: 170,409 |
sounds like its possible getting
corrupted along the way since it doesn't grab data it just dl's the file
its even more weird, i'll look into it but its definitely a issue caused
by your server and setup.
-------------------- CODE9 ADMIN Check out Code9-Group.org for the best stuff around, NOW running my IPBTracker (only IPB forum with a passkey system), membership now open. IPBTracker (Invision 2.1.* intergrated forum tracker using XBT) going final in nxt release, IPBTracker 2.0 begins development for IPB 2.2 soon. Check out IBITZY at my IPBTracker site, the best torrent spider around. |
| |
May 10
2007, 08:30 PM
Post #17
| |
Vegetable Group: Member Posts: 46 Joined: 7-May 07 Member No.: 452,851 |
Ok, well I dunno if anyone is really
interested in an rss mod or not and I probably don't have the time to make
a full mod anyway so below is some example code from the btjunkie rss
crawler I wrote. I decided to use straight up string manipulation instead
of preg_match or anything related (I find string manipulation easier to
code and faster to be executed for this type of thing). The download part
of the code is commented out because you should run it once first without
it downloading just to see how fast it is (gets the info from all 8 main
rss feeds in mere seconds). Anyhow, the code is pretty straight forward
and you can probably see how to use similar code for other sites but
remember this IS site specific code so it's not gonna work if you plug a
mininova url into it or something. CODE
<?php ob_implicit_flush(); $start = 1; while ($start < 8) { $start++; $url = file_get_contents("http://btjunkie.org/rss.xml?c=$start"); for($count = 0; $count < 50; ++$count) { //TITLE $startLoc = strpos($url, '<item>', $nextstartLoc); $titlestartLoc = strpos($url, 'le>', $startLoc ); $titleendLoc = strpos($url, '</t', $titlestartLoc); $actualtitle = substr($url, $titlestartLoc + 3, $titleendLoc - $titlestartLoc - 3); //LINK $linkstartLoc = strpos($url, '<link>', $titleendLoc); $linkendLoc = strpos($url, '</link>', $linkstartLoc); $actualLink = substr($url, $linkstartLoc + 6, $linkendLoc - $linkstartLoc - 6); $nextstartLoc = $linkendLoc; //Downloads the torrent /*$filelink = file_get_contents("$actualLink/download.torrent"); $torfile = fopen("$actualtitle.torrent", "a"); fwrite($torfile, $filelink); fclose($torfile);*/ echo $actualtitle; echo '<br>'; echo $actualLink; echo '<br>'; } } ob_flush(); ?> Welp, have fun. edit: Eventually (gonna be a bit) ill release more RSS crawling code for other sites. This post has been edited by juiced: May 10 2007, 08:42 PM |
| |
May 10
2007, 08:40 PM
Post #18
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
i'll look into that a little more
jaggi, thanks for the tip. and very nice script juiced, that was cool to see the screen fill up like that! small question though, it looks like it needs to be constructed into a torrent and inserted into the database, right? This post has been edited by phrostwave: May 10 2007, 08:46 PM -------------------- :: My side of the internet AK Nova 1.7.5 :: Source available! |
| |
May 10
2007, 08:55 PM
Post #19
| |
Vegetable Group: Member Posts: 46 Joined: 7-May 07 Member No.: 452,851 |
i'll look into that a little more jaggi,
thanks for the tip. and very nice script juiced, that was cool to see the screen fill up like that! small question though, it looks like it needs to be constructed into a torrent and inserted into the database, right? Yea, if you uncomment the download code it'll download the torrents to the directory you run the script from (you can write code to put it in whatever directory you want though). It does although need the code for getting it dropped into the database and whatnot. |
| |
May 10
2007, 08:59 PM
Post #20
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
major props for that, this is going
to be a beast to work with, because its a lot faster than ibitzy (and
configurable) at this point, we'll have to see how it handles once it
starts inserting stuff into the db.... looks like im gonna be writing a nice new function! |
| |
May 10
2007, 09:14 PM
Post #21
| |
Vegetable Group: Member Posts: 46 Joined: 7-May 07 Member No.: 452,851 |
Thx dude. Eventually when i'm done
coding my crawlers (not really sure when tha'll be at this point) it'll
work so that the RSS crawlers are running periodically throughout each day
(over top of the full on crawler) so that new torrents submitted around
the net will be easily indexed. The goal is to make it so that any new
torrent submitted to other sites can be quickly indexed close to the time
it was actually submitted. My full on crawler (which is what's taking the
most time) will also be more basic string manipulation code so that it can
be kept clean, simple, and fast. It'll have a good visual interface to
work with too. |
| |
May 10
2007, 09:30 PM
Post #22
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
awesome right now im looking at torrenttraders import.php, just to get an idea on how to properly write this function (if i can.....oh boy). i mean its a pretty simple process to do, but its a lot of lines to write, and a lot of ways to do it (do like ibitzy and have an 'unprocessed_rss' row?). i guess it would depend on how it functions with the least amount of stress on your server and the server youre grabbing stuff from - i know they wouldnt enjoy a 1 minute DOS from having a ton of crawlers ripping up their feeds. |
| |
May 10
2007, 09:54 PM
Post #23
| |
Vegetable Group: Member Posts: 46 Joined: 7-May 07 Member No.: 452,851 |
Thinking ahead for the full crawlers
behavior... Well, what's going to bog down servers the most is the actual downloading and transferring of torrents from some web site to another (i.e your own site). So, I was thinking that the crawler will run multiple instances of itself at a time (within reason) so it'll be crawling a variety of sites at the same time. When the crawler gets info about a torrent and it's download location, that info can be sent to a download queue that will alternate downloads depending on how long it's been since the last download from the particular site the torrent is from. So, for example if the crawler just downloaded some torrents from site#1 and at the same time is getting info about site#2, 3, 4, 5 etc it will get downloads from sites#2, 3, 4, 5 etc before downloading again from site#1. There are a variety of ways it could be handled I suppose. I'll think of something cool. This post has been edited by juiced: May 10 2007, 09:56 PM |
| |
May 11
2007, 03:31 AM
Post #24
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
btw: if you have managed to make it
all the way through this thread, this release does still contain the same
sql injection bug as the normal version, the only altercation i've done is
remove the (mysql_error) statement, to at least hide the problem for now
(hiding the problem doesnt solve it, remember that!) |
| |
May 16
2007, 03:05 PM
Post #25
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
something i worked on for a few hours
this morning: a fade in dhtml pop up! see exactly what im talking about in this little example, simply click 'view metadata'! im working on integrating this into the comments, as well as a little summary of the details for the index.php any good?? |
| |
May 16
2007, 08:45 PM
Post #26
| |
Chicken Noodle Group: Member Posts: 5 Joined: 11-April 07 Member No.: 448,116 |
very good thank you. i think that you must create a site or blog for developping all those scripts... |
| |
May 17
2007, 12:44 AM
Post #27
| |
Spam Soup Group: BT Community Leader Posts: 802 Joined: 11-August 04 Member No.: 170,409 |
something i worked on for a few hours
this morning: a fade in dhtml pop up! see exactly what im talking about in this little example, simply click 'view metadata'! im working on integrating this into the comments, as well as a little summary of the details for the index.php any good?? few things, you should make it only clickable once as if you click it again then the script runs again which is pointless. Also you should make it open more closer to the link cus if you scroll down and click it you miss the box. |
| |
May 17
2007, 02:18 AM
Post #28
| |
Vegetable Group: Member Posts: 46 Joined: 7-May 07 Member No.: 452,851 |
Neato burrito. |
| |
May 17
2007, 03:59 AM
Post #29
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
damn...it seems that when you fix one thing you just make another issue (we've all been there and done that). so i get the popup to at least center itself on the screen, which cleared the 'can you see me?' problem, but i went a set further and added a toggling-like ability to it, so when you scroll down it follow you. heres where the issue arises: try to scroll to the 'bottom' of the page; it just doesnt happen! so my question is this: should i even include the toggle ability? it centers just fine without it. also, im still working on making it autoclose if you click the link again when its open - if anyone can help me out with this i will post the script half of the function so you can have a go at it. This post has been edited by phrostwave: May 17 2007, 08:45 AM |
| |
May 19
2007, 09:34 AM
Post #30
| |
DJ Taktikz / STR Records Group: Member Posts: 72 Joined: 7-September 06 From: 407 Area Member No.: 411,795 System Specs: (show/hide) 64bit x86 based
AMD 'san diego' 3700+ anthlon processor (2.41G), nforce4-a754 board, 2gb
ram, SATA 200gb HD + 350gb HD, 10MB line, nforce-anux 1.0 OS (my buddies
version of linux). same cpu, same board, same ram, SATA 200gb, usb 200gb, windows xpsp2. BAD MUTHAS! |
couple of updates on the ak
nova: removed the toggling from the metadata popup, seems kinda useless and more for show - and have instead modified the (insert cuss word) out of the login area, giving it the toggle-like ability that the popup had. and even on-top of that, i have integrated a drop down login area! ive been doing some work to ibitzy to make it a little more friendly with t-xores db scheme (multiple values such as 'submitter' for ibitzy and 'posted_id + posted_user' for t-xore), as well as working like a madman to solve this utterly incurable problem with the subcategories & submitter in ibitzy (if ftorrent can do it, i can too ). last thing i need to say is im abandoning the current tracker, and am going to try to focus on integrating defiant v2.? (cant remember the version, its the most current) with t-xore. im hacking away at removing defiants user/torrent system (flat files) - and at the same time integrating t-xores login system, ban feature, categories, and something else i cant seem to remember... any suggestions or ideas? im trying to make this as much a group project as possible, as they say the more the merrier! |
| |
Lo-Fi Version |
0.1893 sec --
12 queries
GZIP
Enabled Time is now: 30th May 2007 - 06:42 PM |