Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created January 20, 2020 13:27
Show Gist options
  • Save ahmedbesbes/909141dbe91f8b5326ef6c4da4db8b23 to your computer and use it in GitHub Desktop.
Save ahmedbesbes/909141dbe91f8b5326ef6c4da4db8b23 to your computer and use it in GitHub Desktop.
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