Skip to content

Commit

Permalink
prettyprint
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Feb 6, 2024
1 parent 8a94d16 commit 04ef748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/api_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def fetch_event_log(bot_name, url=None,botManagerUrl = None):
url = f"https://mobsos.tech4comp.dbis.rwth-aachen.de/event-log"
if botManagerUrl is None:
botManagerUrl = f"https://mobsos.tech4comp.dbis.rwth-aachen.de/SBFManager"
# fetches an event log from the social bot manager. available at <base_url>/event_logs/{name}
print(f"Fetching event log from {url}/bot/{bot_name}")
response = r.get(f"{url}/bot/{bot_name}?bot-manager-url={botManagerUrl}")
endpoint = f"{url}/bot/{bot_name}?bot-manager-url={botManagerUrl}"
print(f"Fetching event log from {endpoint}")
response = r.get(endpoint)
# response is xml, use pm4py to parse it
if response.status_code == 200:
xml = response.content
Expand Down

0 comments on commit 04ef748

Please sign in to comment.