Jump to content


Photo

Scrolling webpage before scrape => Twitter changes


  • Please log in to reply
4 replies to this topic

#1 Jon12345

Jon12345

    Member

  • Members
  • PipPip
  • 28 posts

Posted 29 July 2011 - 02:17 AM

When I go to Twitter, I see 20 odd tweets ready to scrape. But if I scroll to the bottom of the page, it keeps adding more Tweets. Before, I am sure there was a button that you used to click for more tweets, right?

So what can you do now? If I want to scrape I sizeable page of tweets, I figure I will need to load the page and then scroll that page a few times, then do the scrape.

How do I get ubot to scroll so more tweets are added?

Thanks,

Jon

#2 turbolapp

turbolapp

    Advanced Member

  • UBot Users
  • PipPipPip
  • 194 posts
  • OS:Windows 7
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard

Posted 05 August 2011 - 08:07 PM

run javascript
location.reload()

Assuming you're searching through popular results, like trends or something, you need only to refresh the page for new results.

#3 JohnB

JohnB

    Advanced Member

  • UBot Users
  • PipPipPip
  • 3350 posts
  • LocationNJ
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 05 August 2011 - 08:41 PM

I just logged in and it looks like it just keeps loading and loading...you may just have to put in a significant delay and wait for them (i.e. 60 seconds or more)

John

#4 LoWrIdErTJ - BotGuru

LoWrIdErTJ - BotGuru

    Botguru.net

  • Moderators
  • 3184 posts
  • LocationMichigan
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Dev

Posted 05 August 2011 - 09:30 PM

run javascript
window.scrollTo(0,document.body.scrollHeight);
delay or wait finish
run it again
window.scrollTo(0,document.body.scrollHeight);
delay or wait finish

repeat process as many times as you want till enough are showing.

Have fun.

TJ

Web Automation Bots @ BotGuru.net Want a Custom bot? click here or Email me
rjr.jpg

botgurusecured-banner.png

 


#5 amul

amul

    Member

  • Members
  • PipPip
  • 15 posts
  • OS:Windows XP
  • Total Memory:3Gb
  • Framework:v3.5
  • License:Standard

Posted 28 August 2011 - 12:51 AM

run javascript
window.scrollTo(0,document.body.scrollHeight);
delay or wait finish
run it again
window.scrollTo(0,document.body.scrollHeight);
delay or wait finish

repeat process as many times as you want till enough are showing.

Have fun.

TJ



I was trying to figure out how to do get javascript to load this..
Now I've to do some regex for friend ids.. to message.

thanks TJ!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users