Did I find the right examples for you? yes no

All Samples(85)  |  Call(0)  |  Derive(0)  |  Import(85)
A simple "pull API" for HTML parsing, after Perl's HTML::TokeParser.

Examples

This program extracts all links from a document.  It will print one
line for each link, containing the URL and the textual description
between the <A>...</A> tags:

import pullparser, sys
f = file(sys.argv[1])(more...)

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/modules/scala-0.9.1/samples-and-tests/i-am-a-developer/mechanize/_html.py   heroku-playframework(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/p/u/pureplay-HEAD/modules/scala-0.7.3/samples-and-tests/i-am-a-developer/mechanize/_html.py   pureplay(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/samples-and-tests/i-am-a-developer/mechanize/_html.py   landline-server(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/samples-and-tests/i-am-a-developer/mechanize/_html.py   heroku-playframework(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/r/e/restcommander-HEAD/play-1.2.4/samples-and-tests/i-am-a-developer/mechanize/_html.py   restcommander(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/modules/scala-0.9.1/samples-and-tests/i-am-a-developer/mechanize/_pullparser.py   heroku-playframework(Download)
def _test():
   import doctest, _pullparser
   return doctest.testmod(_pullparser)
 
if __name__ == "__main__":

src/p/u/pureplay-HEAD/samples-and-tests/i-am-a-developer/mechanize/_html.py   pureplay(Download)
                 urltags=None,
                 ):
        import _pullparser
        if link_parser_class is None:
            link_parser_class = _pullparser.TolerantPullParser
    def _get_title_text(self, parser):
        import _pullparser
        text = []
        tok = None
        while 1:
    def title(self):
        import _pullparser
        p = _pullparser.TolerantPullParser(
            self._response, encoding=self._encoding)
        try:

src/p/u/pureplay-HEAD/modules/scala-0.7.3/samples-and-tests/i-am-a-developer/mechanize/_pullparser.py   pureplay(Download)
def _test():
   import doctest, _pullparser
   return doctest.testmod(_pullparser)
 
if __name__ == "__main__":

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/samples-and-tests/i-am-a-developer/mechanize/_pullparser.py   landline-server(Download)
def _test():
   import doctest, _pullparser
   return doctest.testmod(_pullparser)
 
if __name__ == "__main__":

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/samples-and-tests/i-am-a-developer/mechanize/_pullparser.py   heroku-playframework(Download)
def _test():
   import doctest, _pullparser
   return doctest.testmod(_pullparser)
 
if __name__ == "__main__":

  1 | 2 | 3 | 4 | 5  Next