Skip to main content
3 of 3
Active reading [<https://en.wikipedia.org/wiki/Sentence_clause_structure#Run-on_sentences>]. Expanded.
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

simplified_scrapy: a new library. I fell in love with it after I used it. I recommend it to you.

from simplified_scrapy import SimplifiedDoc
xml = '''
<foo>
   <bar>
      <type foobar="1"/>
      <type foobar="2"/>
   </bar>
</foo>
'''

doc = SimplifiedDoc(xml)
types = doc.selects('bar>type')
print (len(types)) # 2
print (types.foobar) # ['1', '2']
print (doc.selects('bar>type>foobar()')) # ['1', '2']

Here are more examples. This library is easy to use.

yazz
  • 331
  • 1
  • 4