Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
5k views

JSONDecodeError: Expecting value: line 3 column 1 (char 3)

I am trying the following simple code to get JSON from the Stack Exchange API and it gives me the following error: JSONDecodeError: Expecting value: line 3 column 1 (char 3) Here is my script: ...
Sparkling_Sayena's user avatar
1 vote
2 answers
998 views

Fetch all questions of a particular tag from the Stack Exchange API in Python

I am trying to fetch all questions of the Swift tag from Stack Overflow. I created the query using https://api.stackexchange.com/docs/questions and wrote a simple wrapper in Python. def fetch_question(...
Aaditya Ura's user avatar
1 vote
1 answer
121 views

Stack API doesn't return json with encoding of UTF-8

Here is the query RESULT { "items": [ { "badge_counts": { "bronze": 2, "silver": 1, "gold": 0 }, ...
Nerzid's user avatar
  • 145
1 vote
1 answer
125 views

I want a python program example for more requests a day

How can I make about 10k requests on https://api.stackexchange.com/2.2/users/+J+/questions?order=desc&sort=activity&site=stackoverflow using python program in a day. Where J is variable ...
Manish Bhanu's user avatar
3 votes
1 answer
146 views

How do I add newlines when editing a post body via the API?

I am editing the tags of a question via the API, and to do that you have to pass the body and title etc. I can get the Markdown or HTML from the API but I can't see how to send it back formatted ...
Tim's user avatar
  • 581
3 votes
1 answer
980 views

How can I extract user information on Stack Overflow using Python and the Stack Overflow API?

I am new to Python. I want to extract a user bio, answers, questions they made in Stack Overflow. Can I do that using the API? For example, can I extract the user: name bio and number of questions ...
Mohan Krishna's user avatar
1 vote
0 answers
230 views

Attribute error while using the stackoverflow api wrapper for python on IDLE

This is the code that I use to access Stack Overflow: from stackexchange import Site, StackOverflow so = stackexchange.StackOverflow() for q in so.questions(pagesize=50): print q.title It runs ...
Animesh Pandey's user avatar
1 vote
1 answer
181 views

Non-verbatim search strings in py-stackexchange

I am writing a python program with py-stackexchange that takes a query and returns a list of urls to questions with that query in the title. Here's the code: #!c:/Python27/python.exe -u import sys sys....
kjakeb's user avatar
  • 113
4 votes
0 answers
254 views

PyOverflow: Account statistics for Stack Overflow for Ubuntu!

I was bored, and I wanted to play with the API, so I came up with this little script: It's coded in Python and has only a single image dependency. Here is a screenshot: Here's the source code (it's ...
Blender's user avatar
  • 141