lad1337

my anidb abstracter

Apr 13th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. only few lines are enough to get info from anidb:
  3.  
  4. anidb = AniDBInterface()
  5. anidb.auth('<user_name>', '<user_password>')
  6. show = Anime(anidb,name='Black Lagoon: The Second Barrage',params=['int_aid','str_related_aid_list','str_related_aid_type'])
  7. show.loadData()
  8. print show.int_aid
  9. print show.prequal
  10. print show.sequal
  11. anidb.logout()
  12.  
  13. will result in the output:
  14.  
  15. NetIO > 'AUTH clientver=3&enc=utf8&protover=3&comp=1&tag=T001&client=libpyanidb&user=<user_name>&pass=<user_password>'
  16. NetIO < 'T001 200 lkKQE LOGIN ACCEPTED\n'
  17. NetIO > 'ANIME amask=8c000000000000&s=lkKQE&tag=T001&aname=Black Lagoon: The Second Barrage'
  18. NetIO < "T001 230 ANIME\n4597|6645'3395|1'2\n"
  19. 4597
  20. 3395
  21. 6645
  22. NetIO > 'LOGOUT s=lkKQE&tag=T001'
  23. NetIO < 'T001 203 LOGGED OUT\n'
Advertisement
Add Comment
Please, Sign In to add comment