SharpLeech 2.0.0 ALPHA

Status
Not open for further replies.
You can make a hack for that. For example if you're leeching from warez-bb open the Warez_BB.xml file and find this:

PHP:
            return base.GetTopic(url);
replace with:

PHP:
            // Config
            string findTag = "code";
            string replaceTag = "hide-reply";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );

            return topic;
You can basically manipulate the topic in any way you like trough the plugins.



I can't say what's going on in the case of a crash trough the logs. Because if it crashes it means whatever error occurred wasn't caught and so not logged.

You may want to try leeching with a pause value of 1.


hey. okay it didnt work. this is what i did

PHP:
public override string[] GetTopicUrls(string html)
        // Config
            string findTag = "code";
            string replaceTag = "hide-reply-thanks";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );


and now Sharpleech doesnt recognize it
 
That's because:
- the code you pasted isn't valid
- the GetTopicUrls method has nothing to do with this
- you most likely replaced the wrong line of code
 
hey. okay it didnt work. this is what i did

PHP:
public override string[] GetTopicUrls(string html)
        // Config
            string findTag = "code";
            string replaceTag = "hide-reply-thanks";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );
and now Sharpleech doesnt recognize it


I tested it it works Fine
 
hey Hyperz!

I wanna know something, suppose if i want to filter some words in post like (warez-bb.com) to (myfourm.com) then what expression i have to add??? please can u write the code which i'll write in expressions???

will b thankful to u
 
Code:
<?xml version="1.0" encoding="utf-8" ?>

<!-- SharpLeech 2.x.x SiteReader Plugin -->

<!-- Version MUST be in x.x.x.x format! -->
<SiteReader pluginVersion="2.0.0.0" pluginAuthor="Hyperz">
    <Settings>
        <SiteName>Warez-BB</SiteName>
        <BaseUrl>http://www.warez-bb.org</BaseUrl>
        <TopicsPerPage>50</TopicsPerPage>
        
        <!-- Supported type values are: IP.Board 3.x.x, IP.Board 2.x.x,
             vBulletin 4.x.x, vBulletin 3.x.x, phpBB 3.x.x, phpBB 2.x.x -->
        <Type>phpBB 2.x.x</Type>
        
        <!-- If unsure choose ISO-8859-1. Except for phpBB 3 boards, they use UTF-8 by default. -->
        <DefaultEncoding>ISO-8859-1</DefaultEncoding>
        
        <!-- Set to true if the site uses SEO urls, otherwise false. -->
        <AllowRedirects>false</AllowRedirects>
        <UseFriendlyLinks>false</UseFriendlyLinks>
    </Settings>

    <Sections>
        <Section title="Apps" id="3" />
        <Section title="All-In-One (AIO)" id="47" />
        <Section title="Freewares and Betas" id="9" />
        <Section title="Games" id="5" />
        <Section title="Console Games" id="28" />
        <Section title="Movies" id="4" />
        <Section title="TV Shows" id="57" />
        <Section title="Anime" id="88" />
        <Section title="Music" id="6" />
        <Section title="Music Videos" id="38" />
        <Section title="Templates and Scripts" id="7" />
        <Section title="Template Rips" id="29" />
        <Section title="eBooks" id="8" />
        <Section title="Tutorials" id="83" />
        <Section title="Audio" id="91" />
        <Section title="Mac and Other OSes" id="20" />

        <!-- If you have an account with VIP access you can un-comment this (:
        <Section title="VIPs &amp; Donators" id="35" />
        -->
    </Sections>
    
    <!-- Edit this when the site requires custom parsing -->
    <Code>
        <![CDATA[
        
        protected override void Init()
        {
            base.Init();
        }

        public override void LoginUser(string username, string password)
        {
            base.LoginUser(username, password);
        }

        public override void LogoutUser()
        {
            base.LogoutUser();
        }

        public override string[] GetTopicUrls(string html)
        {
            return base.GetTopicUrls(html);
        }

        public override SiteTopic GetTopic(string url)
        {
            if (Http.SessionCookies["phpBB_WBB_t"] != null)
            {
                Http.SessionCookies["phpBB_WBB_t"].Value = String.Empty;
            }
            
            // Config
            string findTag = "code";
            string replaceTag = "HIDE-REPLY-THANKS";

            // Don't edit below
            string pattern = @"(?i)\[" + findTag + @"\]" +
                             @"([\s\S]*)\[/" + findTag + @"\]";
            string replace = "[" + replaceTag + "]${1}[/" + replaceTag + "]";
            SiteTopic topic = base.GetTopic(url);

            if (topic == null) return null;

            topic.Content = System.Text.RegularExpressions.Regex.Replace(
                topic.Content,
                pattern,
                replace
            );

            return topic;  
        }

        public override SiteTopic GetTopic(int topicId)
        {
            return base.GetTopic(topicId);
        }
        
        public override HttpWebRequest GetPage(int sectionId, int page, int siteTopicsPerPage)
        {
            return base.GetPage(sectionId, page, siteTopicsPerPage);
        }

        public override void MakeReady(int sectionId)
        {
            base.MakeReady(sectionId);
        }
        
        ]]>
    </Code>
</SiteReader>
hey Hyperz!

I wanna know something, suppose if i want to filter some words in post like (warez-bb.com) to (myfourm.com) then what expression i have to add??? please can u write the code which i'll write in expressions???

will b thankful to u

Example:
Code:
\bwarez-bb\.(com|org|net)\b
Would remove the words warez-bb.com, warez-bb.net and warez-bb.org.

Edit:
Whoops, didn't read you post well enough sorry. New example, in the plugin you use replace:
PHP:
            return base.GetTopic(url);
with:
PHP:
            // Domains to replace...
            string[] domains = { "warez-bb.org", "another-domain.com", "yetanotherdomain.net" };
            // Your domain name?
            string newDomain = "yoursite.com";
            
            // Don't edit below.
            SiteTopic topic = base.GetTopic(url);
            
            if (topic == null) return null;
            
            foreach (string domain in domains)
            {
                topic.Content = topic.Content.Replace(domain, newDomain);
            }
            
            return topic;
 
Yup. That's a known problem and has been fixed for the beta release. The ALPHA was only tested with vB 4.0.0. Later versions aren't compatible. For now I suggest you use the Manual Login future to login until the beta is out.

And by the way, the beta progress notes on the 1st post are also a good way to see what the known issues with the alpha version are.
 
?

Yes Hyperz, I use the manual login.
But when I click on "Start Leech", it resets itsself about 2 seconds later, and doesn't start the leech process...
How can I fix this?
 
I'm not sure if you can.

Can you:
1) delete the Errors.log file in your sharpleech folder
2) try leeching again
3) if it resets again quit sharpleech and upload the contents of Errors.log to pastebin.com

So I can have a look.
 
This happens to me also, I would say it's a common problem when trying to leech from vbulletin 4.

All you got to do is:
(Make hidden icons & folders visible first!)
Close SharpLeech!
X(windows drive) -> Users -> "Your Username" -> AppData -> Local
In "Local" folder delete the "Hyperz" folder.
Restart SharpLeech

Everything should be working fine now..
I have to do this everytime I run a new SL instance,
good luck! ;)
 
:)

Thank you very much guys!
DarioX your solution worked great.
Thanks Hyperz for the support also.

EDIT:
SHIT! It posts 5 threads then it gives me a Windows Error that it has stopped working.
Damnit.. everything goes wrong for me. I'm using Windows 7 and I have the framework installed.
 
Running SL as admin will have no effect because there's nothing in there that requires those rights. In fact I recommend not doing so. Especially if you downloaded it from a link other than the one in this thread. Also SL 2 is 32 bit so it doesn't really matter which the OS uses.

I'd start with pasting your Errors.log file to pastebin.
 
Icon ID can be left to 0 - it's not important. In the case of the url you posted the Section ID would be 10.

http://pastebin.com/2x3t1rn6

I have to use the manual login since vB 4.0 login doesn't work on my site. in the Forum Home URL i put "http://www.deviantwarez.info/forums/", I have also tried forum.php. If that's the problem..

I'm assuming you were leeching from wbb? You might wanna use a different site to leech from for the moment. It seems like they are aware of the previous fix and decided to ban everything that uses the SL user-agent header. I guess I better stop posting fixes on there. Can't blame them though, I noticed the past few days that wbb was pretty slow and unstable with quite a few timeouts.

I'll fix the wbb plugin ASAP.

Edit:
When you leech set the pause value to 1 instead of 0. There's a few known bugs when using 0.
 
I tried but got no result.
As I click the Start Leeching button, it gets disabled for a second(as it should be) but then again becomes enabled.
Please help
 
its warezmonster**** and warezunited.info

Right now I'm using sharpleech 1.0.0 in warezmonster**** as other versions are not working.
And in warezunited.info none of them are working.
Can you please try yourself in these forums and tell me how to do it?
 
Status
Not open for further replies.
Back
Top