Created
November 1, 2021 09:41
-
-
Save swdevbali/11b5ccd374e2b1e63e2662005e719362 to your computer and use it in GitHub Desktop.
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
""" | |
This project will get the latest information about earthquake from bmkg.go.id | |
""" | |
from bs4 import BeautifulSoup | |
author = 'Eko SW' | |
date = '1 November 2022' | |
url = 'https://www.bmkg.go.id/' | |
import requests | |
result = requests.get(url) | |
result = BeautifulSoup(result.text, 'html.parser') | |
print(result.title.string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment