Category : web

how to fixing bs4 error I wanted to write a program that finds the name of the airline agency on the flightaware site and I have a None error. How can I fix the code? from bs4 import * import requests a=input("regestry flight ID>>>>>>>>") url="https://flightaware.com/live/flight/"+a url=requests.get(url) soup = BeautifulSoup(url.content,"html.parser") air=soup.find("div",{"class":"flightPageFriendlyIdentLbl"}) print(air) Source: Python..

Read more

I am trying to make my code print all the plain text from a website. This is my code: import requests import json response = requests.get("https://example.com") json_data = json.loads(response.text) print(str(json_data)) For example: if I enter https://example.com, I want to make the program write Example Domain This domain is for use in illustrative examples in documents. ..

Read more

I have literally started with python today, I have managed to get one url to display data in python using. import requests URL = "https://gateway.pinata.cloud/ipfs/QmUJrnabRCMLsnvXNryojLWcysc4WwJCLqWYvJcWADfZFo/chadsJSON/1.json" page = requests.get(URL) print(page.text) I need to look up multiple urls (like above but numbered 1-upto 10,000) and save it as a csv with each url data in one cell ..

Read more