Hello there !
I hope this is the correct forum category and I'm not breaking any forum rule here.
I've been using and maintaining a personal fork of 'e621dl' (https://github.com/wwyaiykycnf/e621dl) for my use. It has become relatively obsolete and I tried making it compatible with the new version of this site. But I may have found a bug :
I have written the following (Python3) code to test a GET request for some tags (let USERNAME, API_KEY and TAG be passed to this code as argument) :
import requests USERAGENT = '{}/e621dl_mod'.format(USERNAME) BASE_URL = 'https://e621.net/posts.json?' parameters = {'tags':TAG} headers = {'User-Agent': USERAGENT, 'login':USERNAME, 'password_hash':API_KEY} #print('Auth:{}'.format(Auth)) r = requests.get( BASE_URL, headers=headers, params=parameters ) if r.status_code!=200: print('Error code {}'.format(r.status_code)) sys.exit(0) posts = r.json()['posts']
When I use most tags, everything is good. But I was testing this code against a list of tags and when I used it with
TAG='oppai_loli'
I found out that every post entry has
.. 'url': None, ..
I tried to use the equivalent url on a browser
https://e621.net/posts.json?tags=oppai_loli
I found out that, when I'm logged in e621 the url field is filled correctly but is set to 'none' when not logged in.
I checked the available doc here and on Github for answers but I don't understand what's happening.
My question is : Did I miss something in my logging in implementation (in the GET request) or is it a bug ?
Updated by Donovan DMC