Python Bytes - Web Scraping Airline Data BeautifulSoup #coding #python #data Code in Description

preview_player
Показать описание
#Coded by Andrew C
from bs4 import BeautifulSoup
import requests

print(title_text)
print("=" * 40)
print()

links_with_text = []

new_list1 = []
for w in Prices:
Prices = new_list1

new_list2 = []
for w in links_with_text:
links_with_text = new_list2

import pandas as pd
Airlines = pd.DataFrame({
"Flight": [w[55:-12] for w in links_with_text[::2]],
"Prices": Prices
})

print(Airlines)
Рекомендации по теме
visit shbcf.ru