So what I am basically trying to do is automate the post/get data types on neo. I've managed to finish the ck auth, neo login, and now up to automating requests.
I'm using this as a template guide for POST/GET
So basically it is thewrapper.Request(Method, Url, Referer)Code:Dim HTML As String = thewrapper.Request("POST", "http://www.neopets.com/login.phtml?destination=%2Findex.phtml&username=" & theusername & "&password=" & thepassword, "http://www.neopets.com/")
As I moved on to automate a page on neo, i'm 100% sure this is the code that won't execute properly
I've also tried re-writing the code.Code:Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If CheckBox30.Checked = True Then Dim HTML As String = thewrapper.Request("POST", "http://www.neopets.com/faerieland/tdmbgpop.phtml?talkto=1", "http://www.neopets.com/faerieland/tdmbgpop.phtml") If HTML.Contains("The plushie remains ever silent,") = True Then ListBox1.Items.Add("Completed") Else ListBox1.Items.Add("Error") End If End If End Sub
It returns Error and doesn't complete the task :/Code:Dim HTML As String = thewrapper.Request("POST", "http://www.neopets.com/faerieland/tdmbgpop.phtml?" & "talkto=1", "http://www.neopets.com/faerieland/tdmbgpop.phtml"
The same applies for the GET Method
I'm pretty sure the issue is related to thewrapper.Request and what I am putting inside. :/Code:Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If CheckBox30.Checked = True Then Dim HTML As String = thewrapper.Request("GET", "http://www.neopets.com/halloween/strtest/process_strtest.phtml?r=4080&lang=en&r=4964&scriptURL=http%3A%2F%2Fwww%2Eneopets%2Ecom%2Fhalloween%2Fstrtest%2Fprocess%5Fstrtest%2Ephtml&prizeScriptURL=http%3A%2F%2Fwww%2Eneopets%2Ecom%2Fhalloween%2Fstrtest%2Fstrtestprize%2Ephtml&FUIComponentClass=%5Btype+Function%5D&FScrollBarClass=%5Btype+Function%5D&total=613323&loaded=613323&percent=100%25&msg=&getScript=%5Btype+Function%5D&attachHammer=%5Btype+Function%5D&moved=0&ended=0&clicked=0&speed5%5Fset=0&speed4%5Fset=0&speed3%5Fset=0&speed2%5Fset=0&speed1%5Fset=0&sent=0&feedback=&hammer%5Ftype=hammer%5Fwood%5Fmc", "http://www.neopets.com/halloween/strtest/index.phtml") If HTML.Contains("View Process") = True Then ListBox1.Items.Add("Completed") Else ListBox1.Items.Add("Error") End If End If End Sub
Neither process the request, and i'm sitting here like
Thanks for any help!
For the dailies, like I explained via Private Message... check the post data, if you see values like r=1231209 for example, check both pages (before and after you do the daily) for these values in the page source. If you can CTRL + F it, then simply grab this value and send it with the post data request. If you don't see it, then it's just a random value. You obviously don't want to send the same random value each time (bot catching method) so send a randomized number, same amount of digits.
(you need an account to see links)
(you need an account to see links)(you need an account to see links)
------------------------
[02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
------------------------
So I'm looking for this(on page before submitting
Sends this dataCode:<input type='hidden' name='talkto' value='1'>
talkto:1
But cannot be found on the next page source, so it is irrelevant?
So is this hash already used? I'm seeing it constantly when checking with other accounts.
@(you need an account to see links) I was talking about this:
When you PMed me. The blue grundo post data does not send any type of hashed string. (Also don't worry, I changed it up so can't be traced)Code:If CheckBox1.Checked = True Then Dim HTML As String = thewrapper.Request("POST", "http://www.neopets.com/desert/fruit/index.phtml?spin=1" & "ck=83asf32f37fd826831ff61a42f5", "http://www.neopets.com/desert/fruit/index.phtml" If HTML.Contains("winning spin") = True Then ListBox1.Items.Add("Completed") Else ListBox1.Items.Add("Error") End If End If
Your Grundo daily code looks okay to me.
Use Live HTTP Headers add-on for firefox to see the request to do the daily, simulate that in VB.NET. But you seem to already be doing that. Don't use the page HTML source for data collection unless you have to.
Last edited by j03; 11-25-2014 at 08:18 AM.
(you need an account to see links)
(you need an account to see links)(you need an account to see links)
------------------------
[02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
------------------------
Theres my issue, the code is correct but it doesn't process, so when I go to check the daily it hasn't been completed. When I PM'ed you about the fruit machine, it was just an example. I'll have to re-build due to computer technicalities and re-write the code around it?
How about you debug your code by saving the contents of HTML to a file where you can read the wrapper's response.
Code:Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click If CheckBox30.Checked = True Then Dim HTML As String = thewrapper.Request("POST", "http://www.neopets.com/faerieland/tdmbgpop.phtml?talkto=1", "http://www.neopets.com/faerieland/tdmbgpop.phtml") System.IO.File.WriteAllText("grundo.html", HTML) If HTML.Contains("The plushie remains ever silent,") = True Then ListBox1.Items.Add("Completed") Else ListBox1.Items.Add("Error") End If End If End Sub
Water (12-09-2014)
Debugging is much easier when you use the built in debugger. In Visual Studio you can even make changes to your code while debugging, it's a big time saver.
Water (01-24-2015)
Agreed. @(you need an account to see links) A quick way to do it is by initiating a debug break after the line you're curious about. Do so just by clicking in the area to the left of the code, like so. Note you CAN'T do this on an empty line.
When the code above it is executed, it will break to this.
If you'd like to see the data of the HTML page you're connected to while running the debugger, hover over whatever string container you're using for the HTML of the page you're connected to, select HTML view and it will show you a visual representation of the result of your get/post request.
Last edited by Carnage; 01-24-2015 at 06:15 PM.