-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcvs_vaccine.py
More file actions
23 lines (19 loc) · 757 Bytes
/
Copy pathcvs_vaccine.py
File metadata and controls
23 lines (19 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import requests
from bs4 import BeautifulSoup
import pandas as pd
import time
from datetime import datetime
import json
import os
url_ca = 'https://www.cvs.com/immunizations/covid-19-vaccine.vaccine-status.ca.json?vaccineinfo'
url_wi = "https://www.cvs.com/immunizations/covid-19-vaccine.vaccine-status.wi.json?vaccineinfo"
my_headers = {
'referer': 'https://www.cvs.com/immunizations/covid-19-vaccine',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36'
}
response = requests.get(url_ca, headers=my_headers)
print(response.status_code)
print(response.text)
response = requests.get(url_wi, headers=my_headers)
print(response.status_code)
print(response.text)