mirror of
https://github.com/bspeice/metrik
synced 2024-11-04 22:48:11 -05:00
10 lines
265 B
Python
10 lines
265 B
Python
import requests
|
|
from metrik.conf import USER_AGENT
|
|
|
|
|
|
def masked_get(url, extra_headers=None):
|
|
user_header = {'User-Agent': USER_AGENT}
|
|
if extra_headers is not None:
|
|
user_header.update(extra_headers)
|
|
return requests.get(url, headers=user_header)
|