Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- Created on Sat Apr 27 10:20:22 2019
- @author: Gabe
- """
- from requests import get
- from requests.exceptions import RequestException
- from contextlib import closing
- from bs4 import BeautifulSoup
- import string
- import re
- from itertools import groupby
- import pandas as pd
- import time
- import matplotlib.pyplot as plt
- import numpy as np
- from scipy.stats import gaussian_kde
- from scipy.stats import kde
- import seaborn as sns
- from sklearn.linear_model import LinearRegression
- from sklearn.model_selection import train_test_split
- import matplotlib.pyplot as plt
- import requests
- from bs4 import BeautifulSoup
- from selenium import webdriver
- from selenium.webdriver.chrome.options import Options
- dr = webdriver.Chrome(executable_path=r'C:\Users\Gabe\Desktop\Lanca\chromedriver.exe')
- #dr.get("https://www.mobile.de/pl/samochod/opel-corsa/vhc:car,pgn:1,pgs:50,ms1:19000_10_")
- dr.get("https://www.google.pl")
- bs = BeautifulSoup(dr.page_source,"lxml")
- print(bs)
- dr.quit()
- print("test")
- file = open('text.txt', 'w')
- file.write(str(bs))
- file.close()
- with open('text.txt', 'r') as myfile:
- data = myfile.read()
- #
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement