July 15, 2019
Web Scraping | python
Tutorials:
https://www.codediesel.com/php/web-scraping-in-php-tutorial/
How to get Title of any website:
#pip install seaborn
#pip install pandas
#pip install matplotlib
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from urllib.request import urlopen
from bs4 import BeautifulSoup
url = “https://www.fastbikri.com”
html = urlopen(url)
soup = BeautifulSoup(html, ‘lxml’)
type(soup)
# Get the title
title = soup.title
print(title)