Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- only few lines are enough to get info from anidb:
- anidb = AniDBInterface()
- anidb.auth('<user_name>', '<user_password>')
- show = Anime(anidb,name='Black Lagoon: The Second Barrage',params=['int_aid','str_related_aid_list','str_related_aid_type'])
- show.loadData()
- print show.int_aid
- print show.prequal
- print show.sequal
- anidb.logout()
- will result in the output:
- NetIO > 'AUTH clientver=3&enc=utf8&protover=3&comp=1&tag=T001&client=libpyanidb&user=<user_name>&pass=<user_password>'
- NetIO < 'T001 200 lkKQE LOGIN ACCEPTED\n'
- NetIO > 'ANIME amask=8c000000000000&s=lkKQE&tag=T001&aname=Black Lagoon: The Second Barrage'
- NetIO < "T001 230 ANIME\n4597|6645'3395|1'2\n"
- 4597
- 3395
- 6645
- NetIO > 'LOGOUT s=lkKQE&tag=T001'
- NetIO < 'T001 203 LOGGED OUT\n'
Advertisement
Add Comment
Please, Sign In to add comment