Project

General

Profile

Feature #1323

Render content running Javascript

Added by Luke Murphey over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
05/03/2016
Due date:
% Done:

100%


Description

This could be done using selenium. I have confirmed that Selenium can be imported and executed directly without install (from https://pypi.python.org/pypi/selenium).


Subtasks

Task #1324: Add web-driver to appClosed

Task #1325: Add function in modular input abstract out the processing of the web-request to get the dataClosed

Feature #1351: Add proxy support for browser renderingClosedLuke Murphey

Task #1355: Get authentication to workClosedLuke Murphey

Task #1356: Update configuration page with browser selection options (and make preview work accordingly too)Closed


Related issues

Related to Website Input - Feature #1353: Add abiity to use a Selenium server New 05/24/2016

History

#2 Updated by Luke Murphey over 8 years ago

Here is the script I used:

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://textcritical.net/works')

import time
time.sleep(3)

tags = browser.find_elements_by_css_selector("table")
for t in tags:
   print t.text

#browser.page_source

browser.close()

#4 Updated by Luke Murphey over 8 years ago

  • Target version set to 2.1

#6 Updated by Luke Murphey over 8 years ago

Looks like I need to use:

webdriver.execute_script("return document.documentElement.outerHTML")

http://stackoverflow.com/questions/26584215/selenium-page-source-does-not-return-modified-dom-tree

#9 Updated by Luke Murphey over 8 years ago

  • Target version changed from 2.1 to 3.0

#10 Updated by Luke Murphey over 8 years ago

Need to get:
  • response code
  • encoding

#11 Updated by Luke Murphey over 8 years ago

(index=* sourcetype=web_input) OR (index=_internal sourcetype=web_input*)

#12 Updated by Luke Murphey over 8 years ago

Need to make sure the browser parameter down to the args. Crawling might not work yet.

#13 Updated by Luke Murphey over 8 years ago

  • Related to Feature #1353: Add abiity to use a Selenium server added

#14 Updated by Luke Murphey over 8 years ago

  • Status changed from New to Closed

Also available in: Atom PDF