import requests
from bs4 import BeautifulSoup
import pandas as pd
url = 'https://mintrans.gov-murman.ru/activities/taxi/reestr_taxi/'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
data = soup.find_all(class_ = 'file')
a = str(data).split('href="/')
a_1 = str(a[1]).split('">\n<span')
a_2 = 'https://mintrans.gov-murman.ru/' + a_1[0]
df = pd.read_excel(a_2)
import requests
from bs4 import BeautifulSoup
import pandas as pd
url = 'https://mintrans.gov-murman.ru/activities/taxi/reestr_taxi/'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
data = soup.find_all(class_ = 'file')
a = str(data).split('href="/')
a_1 = str(a[1]).split('">\n<span')
a_2 = ''.join(a_1[0].split('amp;'))
a_3 = 'https://mintrans.gov-murman.ru/' + a_2
df = pd.read_excel(a_3, skiprows=2)