Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 05:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB.net]Api Bot Snippets

Discussion on [VB.net]Api Bot Snippets within the Coding Tutorials forum part of the General Coding category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 1,426
Received Thanks: 138
[VB.net]Api Bot Snippets

Jo ahbe endlich meinen Youtube API Bot fertig und wollte euch jetzt mal ein paar snippets releasen.

Ok los gehts!

Zuerst müssen wir die Verweise setzen!
Das müsste jeder wissen wie das geht!
Wenn nciht dann nicht weiter lesen.
Ich werde hier ncihts erklären ihr müsst ein wenig mitdenken

Ok weiter gehts.

Als erstes müssen wir ein Paar Deklarationen setzen (wir brauchen einen Dev. Key von Google!):
Code:
Private AppName As String = "YouTube Bot - by ProstylerXx"
    Private DevKey As String = "AI39si61Cgp97PzLpaxY0zxRQEd2wD6FJd8_PV4z5N5l_N7x0_HkT8vdly-9cdhFsbRTE99AiVutPOIDCfEtLFIOBngP_CaPFA"
Das ist sehr wichtig!

Ok wie wählen wir ein Video aus?
Code:
Try
            Dim Split() = Link.Split("=")
            Dim _Split() = Split(1).Split("&")

            Return _Split(0)
        Catch ex As Exception
        End Try
Und als letztes noch wie Abonniert man?
Code:
Try
            Dim SubscribeCounter As Integer = 0

            For i = 0 To txtUseUser.Text - 1
                If LoginUser(Usernames(i), Passwords(i)) = Nothing Then
                    AddHistory.Text = AddHistory.Text + ("Login fehlgeschlagen: " & Usernames(i) & ":" & Passwords(i)) + vbNewLine
                Else
                    Dim Vid As Video = GetVideo(Link)

                    AddHistory.Text = AddHistory.Text + ("Login erfolgreich: " & Usernames(i)) + vbNewLine

                    Try
                        Dim Subs As Subscription = New Subscription
                        Subs.Type = SubscriptionEntry.SubscriptionType.channel
                        Subs.UserName = Vid.Uploader
                        Request.Insert(New Uri(YouTubeQuery.CreateSubscriptionUri(Nothing)), Subs)

                        AddHistory.Text = AddHistory.Text + ("Benutzer """ & Vid.Uploader & """ Subscribed mit dem User " & Usernames(i) & ".") + vbNewLine

                        SubscribeCounter += 1
                    Catch ex As Exception
                    End Try
                End If
            Next

            AddHistory.Text = AddHistory.Text + ("Subscriben abgeschlossen. Anzahl: " & SubscribeCounter & ".") + vbNewLine
        Catch ex As Exception
        End Try
Es ist nicht zum Copy&Paste gedacht da man ncoh einiges machen muss bis es so Funktioniert (Einloggen usw.)

Verkaufe das Komplette Bot Projekt auch dafür einfach PN an mich!
ProstylerXx is offline  
Old 10/31/2011, 13:22   #2

 
Obilee's Avatar
 
elite*gold: 11
Join Date: May 2007
Posts: 62,452
Received Thanks: 29,520
Codes ohne Erklärungen etc. sind keine Tutorials von daher passt es auch nicht in diese Sektion.

#closed
Obilee is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
[VB.net] YouTube API Bot Snippets
07/30/2013 - Coding Tutorials - 28 Replies
Hey Leute, da die Anfrage doch ziemlich groß ist, hier mal ein paar Snippets bezüglich der YouTube API. Voraussetzungen: - Visual Basic Grundlagen - Die DLL's (Downloaden und installieren) - Den Developerkey (Ein Googleaccount wird benötigt) - Und ein Gehirn (Sollte nicht auf Stand-By sein!)
[Snippets] V18 Monster.
02/20/2012 - Flyff Private Server - 51 Replies
Heyho hier die Snippets der v18 Monster. defineObj.h //18Â÷ »êÇÁ·¹½ºÈ£ #define MI_SHIPHARPINEES 1445 #define MI_SHIPMOUGUS 1446 #define MI_SHIPWINGMOUGUS 1447 #define MI_SHIPMESPI 1448
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released.. I got new methods so I dont need this anymore & maybe it'll help some people... G31 Adult Skill if(comboBox4->Text=="Panther'crit'") { KC->Chat(255," Panther Skill ON"); KC->Threads=1; KC->lasttime = timeGetTime()-15000; } else if(comboBox4->Text=="Tiger'otp'")
[v16] Snippets - OnJoin Problem
04/30/2011 - Flyff Private Server - 10 Replies
Hallo leute, ich habe mir die snippets von den v16 Jobs zusammengesucht und alles so eingetragen wie es eigentlich auch hingehört. Errors gibt es keine, ich komm einfach nicht in die World. Es gibt vom World Server einen OnJoin Error, allerdings ist darüber auch nicht mehr zu erfahren. Hab erweiterten Error Log eingebaut -> Kein Ergebnis. Auch der Debugmode hat mich leider nicht zum Fehler geführt.
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager http://upit.cc/images/1d47d78e.jpg Hab mich heute mal rangesetzt, und einen kleinen Manager für Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert in einer Anwendung wollte. Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.



All times are GMT +2. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.