luis carlos 94 Posted June 2, 2014 Report Share Posted June 2, 2014 While I was scraping items from youtube (mobile version), I got this errors: http://imgur.com/FIIDeyl >>>> Error converting value True to type blah blah blah http://imgur.com/nUdLvP0 >>>> Cannot deserialize JSON blah blah The errors happen always when the list reaches the same amount of items (1.090). Some advice? thanks Luis Carlos Quote Link to post Share on other sites
UBotBuddy 331 Posted June 2, 2014 Report Share Posted June 2, 2014 Would help to be able to see your actual code for this node. You are probably mis-using it but its hard to say from the message. Buddy 1 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 2, 2014 Report Share Posted June 2, 2014 I've had similar errors on Facebook without using any plugins, no idea what the issue was though - must have something to do with the JSON bit. Quote Link to post Share on other sites
luis carlos 94 Posted June 2, 2014 Author Report Share Posted June 2, 2014 Thanks Buddy, this is my script. The video in the example has several comments, just want to scrape the outerhtml after clicking on show more one hundred times in order to get enough comments. set user agent("iPhone") navigate("http://m.youtube.com/#/watch?v=FYJIR21KDEM", "Wait") wait(5) click(<innertext=w"COMMENTS*">, "Left Click", "No") wait(5) loop(100) { click(<outerhtml=w"<span role=\"button\" class=\"*\" title=\"Load more posts\" tabindex=\"0\"*>Show more</span>">, "Left Click", "No") wait(4) plugin command("OSCommandsFunctions.dll", "os free memory") run javascript("window.scrollTo(0, document.body.scrollHeight);") } add list to list(%test, $scrape attribute(<outerhtml=w"<img src=\"*\" width=\"*\" height=\"*\" alt=\"\" class=\"*\" oid=\"*\">">, "outerhtml"), "Delete", "Global") Quote Link to post Share on other sites
UBotBuddy 331 Posted June 3, 2014 Report Share Posted June 3, 2014 Well. I don't have that plugin but after I removed it and reduced the 100 to about 10 it ran fine for me. Why are you scraping images or rather their html tags? From your comment up above I thought you were targeting "comments". Anyway... I think (and I am guessing here) it looks like you could be consuming too much memory for UBot so it is dying on you. In this case, the Scrape attribute command is probably hurting you. At this point, I would switch to the "$element offset" node and scrape each one separately. After grabbing a few then save them to a file (appending as you go), reset your list and continue using "$element offset" node. Just my thoughts. Buddy Quote Link to post Share on other sites
yonatankra 1 Posted October 12, 2017 Report Share Posted October 12, 2017 It happens to me as well... when I'm trying to scrape simple things like a single href from a certain <a> tag. Quote Link to post Share on other sites
ronaldod 4 Posted November 4, 2017 Report Share Posted November 4, 2017 Same issue still here. Even on simple pages. Happens to me if the page had a timeout and then repeats itself every next time i use a scrape command. $exists or page scrape.Maybe we need to make a poll how many people have this problem. As i think this issue is more common then posted here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.