Skip to content

Commit

Permalink
modified ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeqfu committed Sep 7, 2020
1 parent ef41495 commit 0462c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyhelpers/ops.py
Expand Up @@ -10,7 +10,6 @@
import time
import types

import fake_useragent
import numpy as np
import pandas as pd
import tqdm
Expand Down Expand Up @@ -41,6 +40,8 @@ def fake_requests_headers(random=False):
# {'User-Agent': '<str>'}
"""

import fake_useragent

fake_user_agent = fake_useragent.UserAgent(verify_ssl=False)

fake_header = {'User-Agent': fake_user_agent.random if random else fake_user_agent.chrome}
Expand Down

0 comments on commit 0462c6b

Please sign in to comment.