diff --git a/.DS_Store b/.DS_Store index 747d624..d413b83 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/geckodriver.log b/geckodriver.log index a649ae6..909f568 100755 --- a/geckodriver.log +++ b/geckodriver.log @@ -4352,3 +4352,28 @@ console.error: BroadcastService: 1558957318490 Marionette INFO Listening on port 54200 1558957318545 Marionette WARN TLS certificate errors will be ignored for this session 1558957323861 Marionette INFO Stopped listening on port 54200 +1558957477852 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/bc/txjl5mmd7cb1ngc8vvs687sc0000gn/T/rust_mozprofile.ha9rD66nGnjO" +1558957478272 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons +1558957478272 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ +1558957478272 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* +1558957479631 Marionette INFO Listening on port 54288 +1558957479699 Marionette WARN TLS certificate errors will be ignored for this session +1558957486393 Marionette INFO Stopped listening on port 54288 +1558957559326 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/bc/txjl5mmd7cb1ngc8vvs687sc0000gn/T/rust_mozprofile.E5jSFSYmRF7J" +1558957559716 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons +1558957559717 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ +1558957559717 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* +1558957561075 Marionette INFO Listening on port 54392 +1558957561162 Marionette WARN TLS certificate errors will be ignored for this session +1558957568233 Marionette INFO Stopped listening on port 54392 + +###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost + +1558957570678 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/bc/txjl5mmd7cb1ngc8vvs687sc0000gn/T/rust_mozprofile.zcTcVlvhPKpC" +1558957571071 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons +1558957571071 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ +1558957571072 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* +1558957572450 Marionette INFO Listening on port 54452 +1558957572509 Marionette WARN TLS certificate errors will be ignored for this session +1558957579051 Marionette INFO Stopped listening on port 54452 +[Child 5073, Chrome_ChildThread] WARNING: pipe error: Broken pipe: file /builds/worker/workspace/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 726 diff --git a/selenium_jstor.py b/selenium_jstor.py index 891bb82..fb5578c 100644 --- a/selenium_jstor.py +++ b/selenium_jstor.py @@ -11,13 +11,13 @@ import base64 i = 1 +name = (input("How do you want to call you files? ")) + while True: try: # URL iterates through the sequence number url = ("https://www.jstor.org/stable/23267102?Search=yes&resultItemClick=true&searchText=tea&searchUri=%2Faction%2FdoBasicSearch%3FQuery%3Dtea%26amp%3Bacc%3Don%26amp%3Bfc%3Doff%26amp%3Bwc%3Don%26amp%3Bgroup%3Dnone&ab_segments=0%2Fl2b-basic-1%2Frelevance_config_with_tbsub_l2b&refreqid=search%3A9fd0deff8d3258de87d3b54d6dfad664&" + "seq=%i#metadata_info_tab_contents"%i) - name = (input("How do you want to call you files? ")) - # Tell Selenium to open a new Firefox session # and specify the path to the driver driver = webdriver.Firefox(executable_path=os.path.dirname(os.path.realpath(__file__)) + '/geckodriver') diff --git a/selenium_jstor_terminal_input.py b/selenium_jstor_terminal_input.py index 6c43309..efdbe3b 100644 --- a/selenium_jstor_terminal_input.py +++ b/selenium_jstor_terminal_input.py @@ -11,13 +11,13 @@ import base64 i = 1 +name = (input("How do you want to call you files? ")) + while True: try: # get the url from the terminal url = (input("Enter instance.social url (include 'https://' AND exlude 'seq=%i#metadata_info_tab_contents' — ") + ("seq=%i#metadata_info_tab_contents"%i)) - name = (input("How do you want to call you files? ")) - # Tell Selenium to open a new Firefox session # and specify the path to the driver driver = webdriver.Firefox(executable_path=os.path.dirname(os.path.realpath(__file__)) + '/geckodriver')