Created
January 20, 2020 13:27
-
-
Save ahmedbesbes/909141dbe91f8b5326ef6c4da4db8b23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import time | |
from bs4 import BeautifulSoup | |
import requests | |
import pandas as pd | |
from selenium import webdriver | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.common.exceptions import TimeoutException | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.options import Options | |
from tqdm import tqdm_notebook | |
base_url = "https://trustpilot.com" | |
def get_soup(url): | |
return BeautifulSoup(requests.get(url).content, 'lxml') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment