Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

YouPorn Python API

Name: Anonymous 2009-04-14 18:02

I programmed one, who's interested?

Name: Anonymous 2011-02-02 23:48

Name: Anonymous 2011-02-04 11:26

Name: Anonymous 2011-02-18 14:19

<-- check 'em

Name: Anonymous 2011-02-19 18:08

Even more pythonic, something like that:

def __init__(self):
    # ...
    def make_method(url):
        def func(page=1, sort_by="week"):
            return self.filter(url % (sort_by, page))
        return func

    self.newest = make_method(NEWEST_URL)
    self.top_rated = make_method(TOP_RATED_URL)
    self.most_viewed = make_method(MOST_VIEWED_URL)

Name: Anonymous 2011-02-19 18:30

God/GNU/Allah does not approve of you creating a freaking FIOC class just so you can satisfy your animalistic desires. Use your God-given gifts for something more productive.

Name: Anonymous 2011-02-19 23:08

>>4

That's not how you use Object Orientation.

Name: Anonymous 2011-02-20 1:24


def captcha():
    return "nigger"

Name: Anonymous 2011-02-20 2:11

I'd just like to interject for a moment. What you're referring to as Allah, is in fact, GNU/Allah, or as I've recently taken to calling it, GNU plus Allah. Allah is not a universe unto himself, but rather another free component of a fully functioning GNU universe made useful by the GNU corelibs, shell utilities and vital system components comprising a full universe as defined by Newton.

Many computer users live in a modified version of the GNU universe every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Allah", and many of its users are not aware that it is basically the GNU universe, developed by the GNU Project.

There really is an Allah, and these people are living in him, but he is just a part of the universe they use. Allah is the creator: the being in the universe that molds the world's matter into the other beings that you are. The creator is an essential part of a universe, but useless by himself; he can only function in the context of a complete universe. Allah is normally used in combination with the GNU universe: the whole universe is basically GNU with Allah added, or GNU/Allah. All the so-called "Allah" miracles are really miracles of GNU/Allah.

Name: Anonymous 2011-02-20 5:47

Ah, and so life imitates art.

Name: Anonymous 2011-02-20 12:54

Traceback (most recent call last):
  File "C:\Users\X\Desktop\api.py", line 71, in <module>
    main()
  File "C:\Users\X\Desktop\api.py", line 66, in main
    for video in youporn.get_most_viewed(sort_by="all")[1:]:
  File "C:\Users\X\Desktop\api.py", line 50, in get_most_viewed
    MOST_VIEWED_URL % (sort_by, page)),"beautifulsoup"))
  File "C:\Python27\lib\site-packages\html5lib\html5parser.py", line 36, in pars
e
    tb = treebuilders.getTreeBuilder(treebuilder)
  File "C:\Python27\lib\site-packages\html5lib\treebuilders\__init__.py", line 7
0, in getTreeBuilder
    import soup
  File "C:\Python27\lib\site-packages\html5lib\treebuilders\soup.py", line 5, in
 <module>
    from BeautifulSoup import BeautifulSoup, Tag, NavigableString, Comment, Decl
aration
ImportError: No module named BeautifulSoup

щ(゚д゚щ)

Name: Anonymous 2011-02-20 13:20

>>51
C:\
Tsk.

Name: Anonymous 2011-02-20 13:21

>>52
back to /lounge/, please

Name: Anonymous 2011-02-20 13:30

>>52
Tsk.
Tsk.

Name: Anonymous 2011-02-20 13:31

<-- check my doubles

Name: Anonymous 2011-02-20 13:33

>>53
back to /lounge/, please
Tsk.

Name: Anonymous 2011-02-20 13:35

>>56
Tsk.
Tsk.

Name: Anonymous 2011-02-20 14:26

>>56
>>57




               _..--""-.                  .-""--.._
           _.-'         \ __...----...__ /         '-._
         .'      .:::...,'              ',...:::.      '.
        (     .'``'''::;                  ;::'''``'.     )
         \             '-)              (-'             /
          \             /                \             /
           \          .'.-.            .-.'.          /
            \         | \0|            |0/ |         /
            |          \  |   .-==-.   |  /          |
             \          `/`;          ;`\`          /
              '.._      (_ |  .-==-.  | _)      _..'
                  `"`"-`/ `/'        '\` \`-"`"`
                       / /`;   .==.   ;`\ \
                 .---./_/   \  .==.  /   \ \
                / '.    `-.__)       |    `"  TUSK!
               | =(`-.        '==.   ;
                \  '. `-.           /
                 \_:_)   `"--.....-'


Name: Anonymous 2011-02-20 14:27

>>58








               _..--""-.                  .-""--.._
           _.-'         \ __...----...__ /         '-._
         .'      .:::...,'              ',...:::.      '.
        (     .'``'''::;                  ;::'''``'.     )
         \             '-)              (-'             /
          \             /                \             /
           \          .'.-.            .-.'.          /
            \         | \0|            |0/ |         /
            |          \  |   .-==-.   |  /          |
             \          `/`;          ;`\`          /
              '.._      (_ |  .-==-.  | _)      _..'
                  `"`"-`/ `/'        '\` \`-"`"`
                       / /`;   .==.   ;`\ \
                 .---./_/   \  .==.  /   \ \
                / '.    `-.__)       |    `"  MOO
               | =(`-.        '==.   ;
                \  '. `-.           /
                 \_:_)   `"--.....-'

Name: Anonymous 2011-02-20 14:59

Name: Anonymous 2011-02-20 15:08

>>1

i have one too. don't abuse it.

Name: Anonymous 2011-02-20 15:13

combine one part bash, one part wget, and the following. results should be slightly pixelated, with a hint of caramel and aged goat cheese.

i=0; loc=-1
for line in somepage:
  if line.find('.mp4') != -1:
    loc=i;break
  i+=1
wmvRE=re.compile('http:\/\/vid\d.*wmv')
mp4RE=re.compile('http:\/\/vid\d.*mp4')
linkstring = somepage[loc]
wmvlink = wmvRE.findall(linkstring)[0]
mp4link = mp4RE.findall(linkstring)[1]
print 'wmv:',wmvlink
print 'mp4:',mp4link
return 0

Name: Anonymous 2011-02-20 17:32

63 get

Name: Anonymous 2011-02-20 23:22








               _..--""-.                  .-""--.._
           _.-'         \ __...----...__ /         '-._
         .'      .:::...,'              ',...:::.      '.
        (     .'``'''::;                  ;::'''``'.     )
         \             '-)              (-'             /
          \             /                \             /
           \          .'.-.            .-.'.          /
            \         | \0|            |0/ |         /
            |          \  |   .-==-.   |  /          |
             \          `/`;          ;`\`          /
              '.._      (_ |  .-==-.  | _)      _..'
                  `"`"-`/ `/'        '\` \`-"`"`
                       / /`;   .==.   ;`\ \
                 .---./_/   \  .==.  /   \ \
                / '.    `-.__)       |    `"  GNU/HURD
               | =(`-.        '==.   ;
                \  '. `-.           /
                 \_:_)   `"--.....-'

Name: Anonymous 2011-02-21 0:28

Name: Anonymous 2011-02-21 0:28

<-- check 'em dubz

Name: Anonymous 2013-01-18 23:00

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List