Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. [15:03:18] <eMyller> [python] I need to grab the contents of a page that requires javascript; i am wondering if i can access the rendered page markup without needing to show any GUI
  2. [15:03:28] <eMyller> this is for a robot that will run on a server
  3. [15:03:59] <-- GrecKo (~GrecKo@2a01:e35:8a3d:db10:c4d9:5468:f91e:3163) has quit (Ping timeout: 248 seconds)
  4. [15:04:28] --> grzywacz (~grzywacz@wesnoth/developer/grzywacz) has joined #qt
  5. [15:04:37] <eMyller> nvm, i think i found something...
  6. [15:04:39] <agb> eMyller: do you just want the html and javascript?
  7. [15:04:47] --> shartte (~Sebastian@dslb-084-058-232-196.pools.arcor-ip.net) has joined #qt
  8. [15:04:51] <agb> ah
  9. [15:05:01] <eMyller> agb: yes
  10. [15:05:18] <eMyller> i tried python's mechanize; it's great, but doesn't run js, ofc. :\
  11. [15:05:42] <eMyller> i need the js to be executed so i can grab the final html
  12. [15:06:47] --> slux (~slux@93-40-163-245.ip39.fastwebnet.it) has joined #qt
  13. [15:06:50] <agb> You might be able to use QWebPage/QWebFrame etc without showing windows
  14. [15:06:51] <-- anthonyl (~anthonyl_@216.3.138.98) has quit (Quit: This computer has gone to sleep)
  15. [15:06:58] <agb> but I think you'll need an active X connection
  16. [15:07:15] <-- drdanz (~quassel@jennifer.bio.dist.unige.it) has quit (Remote host closed the connection)
  17. [15:07:32] <eMyller> :\
  18. [15:07:48] <-- arkub (~arkub@bdv75-13-78-237-140-154.fbx.proxad.net) has quit (Ping timeout: 240 seconds)
  19. [15:07:53] <-- Scorp1us (~as@216.50.65.6) has quit (Ping timeout: 259 seconds)
  20. [15:07:53] <-- kdepepo (~pepo@p5B3BAC77.dip.t-dialin.net) has quit (Remote host closed the connection)
  21. [15:08:47] --> drdanz (~quassel@jennifer.bio.dist.unige.it) has joined #qt
  22. [15:08:50] <eMyller> agb: thanks, i'll do some research
  23. [15:08:51] <-- fredmorcos (~fred@193.170.133.4) has quit (Quit: Leaving)
  24. [15:09:26] <agb> eMyller: np
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement