I want to see the 'user(specifically, user's display_name') data using Stackoverflow's API.
I'm using and reading the docs about StackExchange API, and still didn't get the idea about 'fetch' and anything about get the data.
Using 'beautifulsoup' or any crawling code, is it the only way to get the data?
from stackapi import StackAPI
SITE = StackAPI('stackoverflow')
users = SITE.fetch('users')
print(users['items'])
Following the documentation for the StackAPI python library, the method skeleton is
fetch(endpoint=None, page=1, key=None, filter='default', **kwargs).So your api call will look something like:
where the filter code was obtained from the get users docs for the api.
Returns: