This file contains hidden or 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
import pandas as pd | |
from twitter_scraper import get_tweets | |
import xlrd | |
searchquery1 = "@ScottMorrisonMP" | |
searchquery2 = "@GregHuntMP" | |
searchquery3 = "@healthgovau" | |
dataset = [] | |
for searchquery in [searchquery1, searchquery2, searchquery3]: |
This file contains hidden or 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
import json | |
import requests | |
import pandas as pd | |
from urllib.request import Request, urlopen | |
import ssl | |
from bs4 import BeautifulSoup | |
data = pd.read_csv('artists.csv',sep=';') # Reading data from csv | |
data = data.T.to_dict().values() # Converting dataframe into list of dictionaries |
This file contains hidden or 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
from urllib.request import Request, urlopen | |
import ssl | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
url = 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/media-resources/news' | |
################################################# | |
################################################# |