question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppPixivAPI.user_illusts() cannot ignore "type" parameter.

See original GitHub issue

Try

    def user_illusts(self, user_id, illust_type=None, illust_filter='for_ios', offset=None, req_auth=False):
        url = 'https://app-api.pixiv.net/v1/user/illusts'
        params = {
            'user_id': user_id,
            'filter': illust_filter
        }
        if illust_type:
            params['type'] = illust_type
        if offset:
            params['offset'] = offset
        r = self.no_auth_requests_call('GET', url, params=params, req_auth=req_auth)
        return self.parse_result(r)

If type not in params, every type of illust can be fetched, including ugoria.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
steinuilcommented, Apr 17, 2017

As far as I know, type can take illust, manga, novel or ugoira.

0reactions
upbitcommented, Apr 18, 2017

This commit included in v3.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

pytype | A static type analyzer for Python code - Google
assert-type. The error message displays the expected and actual type of the expression passed to assert_type() if the two do not match. Example:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found