Hot answers tagged

5

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? Sorry if I am posting this the wrong way or in the wrong area but I am new to Stack Overflow and to programming as well :) This is the part of the code I am ...


5

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 returned (apparently to a multiple of the page size)...:-( My code needs to look at all Qs asked for a given tag in a given month: def qstats(site, tag, month,...


3

Example of Explicit Authentication: Explicit authentication is relatively straightforward with Stack.PY. Assuming you have already registered your application, the instructions look something like this: Visit your application's page to obtain the following information: key client ID client secret Provide Stack.PY with the above information: from stackpy ...


3

When I try running the code with python 3.4 I always get this error: AttributeError: 'HTTPMessage' object has no attribute 'getheader' Here is the full traceback. I'd be very happy if any of you could tell me what the problem is. Is it the fact that I'm using python3? I converted the example files using 2to3 and it seems to me that it should work fine... ...


2

The API was working but now I receive an error when I try to run the demo examples. Sample error dump: /usr/bin/python2.7 /home/donbeo/PycharmProjects/stack_overflow/experience.py StackOverflow user 41981's experience: Traceback (most recent call last): File "/home/donbeo/PycharmProjects/stack_overflow/experience.py", line 13, in <module> user = ...


2

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.post_type = PostType.from_string(json.post_type) 167 168 def _get_post(self): AttributeError: DictObject instance has no attribute '...


2

I've already used the Stack.PHP library in a WordPress plugin and am deploying a second one. They had a class conflict and using class_exists before require_once/stackphp* didn't work. I had to do this at the beginning of the file output_helper.php: if( !class_exists( 'API' ) ): require_once 'api.php'; require_once 'auth.php'; endif; require_once '...


2

Vineet, Try below one, I have added support for Stack Exchange API V2.x https://github.com/sanjivsingh/stackoverflow-java-sdk For more detail, follow docs https://github.com/sanjivsingh/stackoverflow-java-sdk/wiki


2

bug support @Nathan Osman, I have been trying to get authentication working with your library (which is very useful BTW). However, whenever I use the explicit flow I end up with an error on the stack exchange.com/oauth/submit page saying: Cannot return to provided redirect_uri The uri I am attempting to provide is generated using BeginExplicitFlow in ...


2

Example - Downloading a question with its body from stackpy import Site site = Site('stackoverflow') question = site.questions(1732348).filter('withbody')[0] print '--- %s ---' % question.title print question.body


2

stackoverflow-java-sdk artifacts have been upload to Maven Central. Now, You simply add maven dependency in your project POM Dependency <dependency> <groupId>com.googlecode.stackexchange</groupId> <artifactId>stackoverflow-java-sdk-release</artifactId> <version>2.2.0</version> </...


2

a few questions i have about your API. based on the user can I get a list of all questions and answers the user has? giving a user can I get a List<Questions> and List<Answer> that the user has made? will the answer object have the following methods: Answer.addPlus() Answer.removePlus() Answer.addNegitive() Answer.removeNegitive() Answer....


2

Step 1: I would like to retrieve all the related tags of a particular tag using your package, much like what is accomplished here. Step 2: I would like to find the intersection between two lists of related tags. RELATED: https://stackoverflow.com/q/19898666/307454


1

feature-request status-completed Create a list of users that is currently in the room. Feature request completed.


1

Question: How do you request all Tags? Retrieving a list of tags on a given Stack Exchange site with Stack.PY is relatively straightforward: from stackpy import Site sa = Site('stackapps') for t in sa.tags: print t However, this will only fetch the first 30 tags. The tricky part is fetching more than one page. You can fetch any particular page by ...


1

I don't know why but I am not able to install that package. I'll get this error: PM> Install-Package StacMan "StacMan 1.0.1.0" wurde erfolgreich installiert. "StacMan 1.0.1.0" wurde erfolgreich deinstalliert. Installationsfehler. Rollback wird ausgeführt... Install-Package : Das Paket "StacMan 1.0.1.0" konnte nicht installiert werden. Sie versuchen, ...


1

I'm using C# for the first time. When I compile the StacMan source under the v3.5 framework I get this error: Error 2 Default parameter specifiers are not permitted StacManClient.SuggestedEditMethods.cs From what I have read, it seems that this error occurs when not using the .NET framework v4 for compiling. Any suggestions?


1

This is probably a dumb question, but: How do you retrieve the body of a post? For example, I have: $questionList = $api->Questions()->SortByActivity()->Exec(); while($question = $questionList->Fetch(TRUE)){ ... } But... how do I get the question body? It doesn't seem to be in the API reponse that I can see. I remember in the v1 API you ...


1

Lucas, Something must have changed in JSON data format sent from the Stack Exchange API because yesterday for no reason I started getting: ValueError("Unexpected UTF-8 BOM (decode using utf-8-sig)") (I searched through many forums, reinstalled python a couple of times etc etc) As the error says, there is a problem with the encoding. Basically all I ...


1

I'm trying to access different attributes of the Answer class but I get this error: AttributeError: 'Answer' object has no attribute 'accepted' I looked into your init.py file and I can see that you have a tuple there that lists the attributes: transfer = ('accepted', 'locked_date', 'question_id', 'up_vote_count', 'down_vote_count', 'view_count', 'score','...


1

The library currently does not yet support the use of access_token obtained through OAuth 2.0, does it?


1

Feature Request The active questions queue shows posts that have been edited. I like to watch that. But I can't get a List of Answers sorted by activity, only Questions. I am looking for something like this var o = new PostOptions(); o.SortBy = Sort.Activity; o.SortDirection = SortDirection.Descending; o.FromDate = DateTime....


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