Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- from selenium.webdriver.common.keys import Keys
- from bs4 import BeautifulSoup
- import re
- import pandas as pd
- import os
- #launch url
- url = "https://cdm22007.contentdm.oclc.org/digital/collection/p22007coll9/id/491924/rec/3"
- # create a new Firefox session
- driver = webdriver.Firefox()
- driver.implicitly_wait(90)
- driver.get(url)
- #attempts to click the transcripts button
- python_button = driver.find_element_by_id('panel panel-default') #FHSU
- python_button.click() #click fhsu link
- #attempts to scrape the text
- el=driver.find_element_by_id("itemText")
- print(el.text)
- #closes the browser
- driver.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement