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,...


4

We (myself and Kyle), with graphical help from Nathan, developed an automatically generated image that pulls in the number of bounties, the total bounty rep value, and displays that in an image. It is part of the Ask Different Community Ads, and we're pretty proud of it. Thanks for developing Serel, it made the heavy lifting of StackExchange's API insanely ...


4

This currently does not work with the v2.0 API.


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

I am running py-stackexchange v1.1-4 and I'm hitting a strange issue after not touching this library for perhaps eight months or so... My queries used to be relatively fast... I could get results in 30 seconds. Now my queries literally take hours with the same code... example query: def filtered_question_dict(sesite, mytags, pagesize=100, ...


2

Based on the demo *recent_questions.py* example, I am using the following code to retrieve the 10 most recent questions at the command line: so = stackexchange.Site(stackexchange.StackOverflow) questions = so.recent_questions(pagesize=10) for q in questions: print "question retrieved:", q.title.encode('ascii', 'ignore'), "\t", q.id ... As you can ...


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

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

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

This "answer" relates to version 5a which has been superseded since. This is a minimal failing example: // ==UserScript== // @name Test // @namespace . // @description Test userscript. // @require http://code.jquery.com/jquery-1.7.1.min.js // @require http://josh.gitlin.name/userscripts/ThirdPlace.js // @include http:/...


2

Event Logging, Caching and Throttling I've just finished implementing these features. Event Logging is a new feature that allows us to debug different methods on the bridge by hooking the events at client.EventLog, and examining the messages logged there. Caching was already present on the previous version of the bridge, but it now supports multi-...


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

Is this project still under development?


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