Hot answers tagged

13 votes

Flack Overstow - Generate spam from Stack Exchange posts

Here are some of the best snippets I've seen so far. From Stack Overflow, You should be downloaded. Me.load. the given URL actually points to a coincidence. Dolby also specifies that the conversion ...
  • 231
9 votes

Flack Overstow - Generate spam from Stack Exchange posts

Some of my own "quotes" from Stack Overflow: I know, there is no way to explain the way Python treats variables and parameters. This will remove all characters on Earth. I modified the function and ...
  • 191
5 votes

Py-StackExchange: An API wrapper for Python

I am trying to use the Search option to get the list of results from SO. I have tried using pagesize=50 and I still get large number of titles returned. Is there another option to limit that search? ...
5 votes

Py-StackExchange: An API wrapper for Python

Total results vary with page size The idea of producing a transparent iterator (getting the next page as needed) is cool, but it just isn't working; the page size affects the total number of results ...
4 votes
Accepted

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

The \r\n issue was solved when I changed to a POST request. But, since I was retagging questions (didn't really need to change the body, just resend it), I ended up using the body_markdown, encoded ...
  • 561
4 votes

StackPrinter: The Stack Exchange Printer Suite

status-completedI asked this as a question, but apparently the convention is to report bugs/feature requests in the announcement thread. It appears, that the MathJax extension mhchem is currently not ...
3 votes

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

The first thing to point out is that you should understand that fetching all posts with a tag is going to result in huge quota usage for any relatively popular tag , as well as take a significant ...
3 votes

Stackathlon 2.5: Leader board for users active on multiple sites

Great design and great idea. I don't know whether many people still look at this, but I discovered it today and if it was advertized and used more. Some suggestions for Stackathlons: Quantitive ...
3 votes

Flack Overstow - Generate spam from Stack Exchange posts

These all come from my mechanics.stackexchange profile. There's a post here: whatconsumer.co.uk whose top post seems to be burning an over-rich fuel mixture. Hmm, I wonder what they're running their ...
3 votes

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

The API presents individual features behind individual URLs. The information on the profile page is combined from several sources; to get the details you requested, you will have to submit multiple ...
  • 149
3 votes

StackPrinter: The Stack Exchange Printer Suite

The default bookmarklet javascript has problems when used with mathoverflow. Because annoyingly mathoverflow ends with a .net instead of a .com. I made some changes so that it could also work with ...
3 votes

StackPrinter: The Stack Exchange Printer Suite

Here is a small script (stackprinter) which uses Stack Printer from the command-line: #!/bin/sh type wkhtmltopdf || { echo >&2 "wkhtmltopdf command is required. Aborting."; exit 1; } :...
  • 153
2 votes

Py-StackExchange: An API wrapper for Python

import stackexchange so = stackexchange.Site(stackexchange.StackOverflow) comment = so.comment(valid_comment_id) the above code returns the following error in init.py: --->166 self....
2 votes
Accepted

Is my script's API usage okay?

This isn't really a place to code-review your script, even if it uses the API. Here is were you would publish your script1. However, after a quick glance at the code, I don't see any glaring ...
  • 12.7k
1 vote

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

That URL is the URL of the documentation page, so you'll get HTML back and not JSON. You'll need to replace it with the URL next to the 'Run' button (right-click and choose Copy Link, it should start ...
  • 5,562
1 vote
Accepted

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

That data is stored as HTML in the database, as are more fields (e.g. the about_me field right above the location). Presumably, this is done for performance reasons. ü is the HTML entity ...
  • 5,562
1 vote
Accepted

I want a python program example for more requests a day

You are subject to throttling. You can get more calls by first registering your application. After that you get access to a detail page which includes a value for key. The description for that field ...
  • 1,810
1 vote

Got a Bad Status Line

I suspect some new throttling kicked in on Saturday. When I slightly increased the delay between page= queries, the problem went away.
1 vote

Stackdump, an offline browser for StackExchange sites

supportstatus-resolved I've been searching for a Stack Exchange offline version, for research purposes at my University, then I found this. I have been trying to figure out how to exactly run the ...
  • 11
1 vote

Flack Overstow - Generate spam from Stack Exchange posts

Outside world until the constructor returns. If the native library/code cannot be linked to by that JVM (for example, if you have a Windows JVM (for example, if you have a rich history of ...
  • 121
1 vote

Py-StackExchange: An API wrapper for Python

I can't figure out how to fetch the text body of the answers and comments to a question given the question id. Also I can't figure out what are the supported sites(variable Name) in the method name ...
1 vote

Py-StackExchange: An API wrapper for Python

Seems very unreliable to me. Using the GitHub number of answers example results in a NeedsAwoken error, while the scrolling list of questions makes a StackExchangeError. List of errors (community can ...
1 vote

Py-StackExchange: An API wrapper for Python

support How can I access the q in the questions method? In the Stack Exchange API, Usage of /search/advanced: q - a free form text parameter, will match all question properties based on an ...

Only top scored, non community-wiki answers of a minimum length are eligible