Skip to content

Commit

Permalink
Update recdotgov_provider.py
Browse files Browse the repository at this point in the history
Don't need to use external parameter anymore. Also just use random on the list of chrome browsers UA strings.
  • Loading branch information
melroy89 authored Aug 10, 2023
1 parent 9931047 commit 409cdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camply/providers/recreation_dot_gov/recdotgov_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, api_key: str = None):
"accept": "application/json",
"apikey": _api_key,
}
_user_agent = UserAgent(use_external_data=False, browsers=["chrome"]).chrome
_user_agent = UserAgent(browsers=["chrome"]).random
self._user_agent = {"User-Agent": _user_agent}

@property
Expand Down

0 comments on commit 409cdb3

Please sign in to comment.