#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
"""This class deals with fields on the website
in which queries areprovides bea made,wrapper andaround handlesactual userworking inputcode."""
# CONSTANTS
URL = None
XPATH = {
"titles": '',
"authors": '',
"dates": '',
"journals": '',
"year_issues": '',
"urls": ''
}
def __init__(self):
self.driver = webdriver.Chrome
def webpage(self, url):
driver = self.driver()
driver.get(url)
return driver
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
"""This class deals with fields on the website
in which queries are be made, and handles user input."""
# CONSTANTS
URL = None
XPATH = {
"titles": '',
"authors": '',
"dates": '',
"journals": '',
"year_issues": '',
"urls": ''
}
def __init__(self):
self.driver = webdriver.Chrome
def webpage(self, url):
driver = self.driver()
driver.get(url)
return driver
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
class Input:
"""This class provides a wrapper around actual working code."""
# CONSTANTS
URL = None
def __init__(self):
self.driver = webdriver.Chrome
def webpage(self, url):
driver = self.driver()
driver.get(url)
return driver
lang-py