Skip to content

Instantly share code, notes, and snippets.

View harishsg99's full-sized avatar
😅
don't waste your time by seeing my status

Harish S.G harishsg99

😅
don't waste your time by seeing my status
View GitHub Profile
அச்சிடு "Hello-World"
@harishsg99
harishsg99 / scraper.py
Created April 30, 2021 06:12
Script to scrape tn govt website
from autoscraper import AutoScraper
import pandas as pd
import json
import csv
url = 'https://stopcorona.tn.gov.in/beds.php'
wanted_list = ["Ariyalur","District","COVID BEDS","Sai Fertility Centre & Hospital, Vedhachalam Nagar","9941550979","8"]
scraper = AutoScraper()
result = scraper.build(url, wanted_list)
t = scraper.get_result_similar(url, grouped=True)
@harishsg99
harishsg99 / firestore_upload.py
Created April 30, 2021 04:32
This script allows me to upload csv into firestore
import csv
import firebase_admin
import google.cloud
from firebase_admin import credentials, firestore
cred = credentials.Certificate("./ServiceAccountKey.json")
app = firebase_admin.initialize_app(cred)
store = firestore.client()