Tag Info

Hot answers tagged

2

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


2

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


1

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


1

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


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



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