Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(15)  |  Derive(0)  |  Import(3)

src/p/i/PixivUtil2-HEAD/PixivUtil2.py   PixivUtil2(Download)
import PixivDBManager
import PixivHelper
from PixivModel import PixivArtist, PixivImage, PixivListItem, PixivBookmark, PixivTags
from PixivModel import PixivNewIllustBookmark, PixivGroup
from PixivException import PixivException
                        else:
                            raise
                    artist = PixivArtist(mid=member_id, page=BeautifulSoup(list_page.read()))
                    break
                except PixivException as ex:

src/p/i/PixivUtil2-HEAD/test.PixivHelper.py   PixivUtil2(Download)
import os
import unittest
from PixivModel import PixivImage, PixivArtist
from BeautifulSoup import BeautifulSoup
 
  def testCreateAvatarFilenameFormatNoSubfolderNoRootDir(self):
    p = open('./test/test-helper-avatar-name.htm', 'r')
    page = BeautifulSoup(p.read())
    artist = PixivArtist(mid=1107124, page=page)
    filenameFormat = '%image_id% - %title%'
  def testCreateAvatarFilenameFormatWithSubfolderNoRootDir(self):
    p = open('./test/test-helper-avatar-name.htm', 'r')
    page = BeautifulSoup(p.read())
    artist = PixivArtist(mid=1107124, page=page)
    filenameFormat = '%member_token% (%member_id%)\%R-18%\%image_id% - %title% - %tags%'
  def testCreateAvatarFilenameFormatNoSubfolderWithRootDir(self):
    p = open('./test/test-helper-avatar-name.htm', 'r')
    page = BeautifulSoup(p.read())
    artist = PixivArtist(mid=1107124, page=page)
    filenameFormat = '%image_id% - %title%'
  def testCreateAvatarFilenameFormatWithSubfolderWithRootDir(self):
    p = open('./test/test-helper-avatar-name.htm', 'r')
    page = BeautifulSoup(p.read())
    artist = PixivArtist(mid=1107124, page=page)
    filenameFormat = '%member_token% (%member_id%)\%R-18%\%image_id% - %title% - %tags%'

src/p/i/PixivUtil2-HEAD/test.PixivModel.py   PixivUtil2(Download)
#!/c/Python27/python.exe
# -*- coding: UTF-8 -*-
from PixivModel import PixivArtist, PixivImage, PixivBookmark,PixivNewIllustBookmark, PixivTags, PixivGroup
from PixivException import PixivException
from BeautifulSoup import BeautifulSoup
      page = BeautifulSoup(p.read())
      try:
        artist = PixivArtist(1107124, page)
      except PixivException as ex:
        print ex
      page = BeautifulSoup(p.read())
      with self.assertRaises(PixivException):
          PixivArtist(1233, page)
      page.decompose()
      del page
      page = BeautifulSoup(p.read())
      with self.assertRaises(PixivException):
          PixivArtist(1, page)
      page.decompose()
      del page
      page = BeautifulSoup(p.read())
      try:
        artist = PixivArtist(26357, page)
        #artist.PrintInfo()
      except PixivException as ex: