This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string getAzCompass(float deg) | |
{ | |
var a=0; | |
if((deg>a)&&(deg<a+15)) | |
return 'N'; | |
a=a+15; | |
if((deg>a)&&(deg<a+15)) | |
return 'NNE'; | |
a=a+15; | |
if((deg>a)&&(deg<a+15)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install validators | |
from bs4 import BeautifulSoup | |
import requests | |
import validators | |
def get_data(url): | |
soup = BeautifulSoup(requests.get(url).text) | |
url_data = [] |