Jump to content
UnixDevel

Python Question

Recommended Posts

Posted (edited)

Care este cel mai ok si simplu mod de a parsa un custom structured xml in python.
FYI: am incercat tot ce vine default din python std.

 

Offtopic:  Orice experienta cu raspberry pi cluster e bine venita

 

Offtopic2: Orice experientza cu IPFS ( https://ipfs.io/) din nou este bine venita.

 

Ideea: Un netflix open source ce foloseste torrents si IPFS 

Edited by lzomedia
Posted
5 minutes ago, Nytro said:

Nu vreau sa para o solutie "taraneasca", dar eu o mai folosesc: "get string between two other strings": https://stackoverflow.com/questions/3368969/find-string-between-two-substrings Cum ar fi get-string_between(xml, "<tag>","</tag'>) :D 

Si il folosesti cum vrei, poti face niste for-uri/while-uri cand sunt mai multe...

sunt lenes @Nytro . M-am gandit deja la treaba asta da e prea mult cod de scris si sunt lenesh :)).

  • Upvote 1
  • Active Members
Posted
55 minutes ago, lzomedia said:

sunt lenes @Nytro . M-am gandit deja la treaba asta da e prea mult cod de scris si sunt lenesh :)).

 

E prea mult cod? Sunt doua linii :) 

 

Mai ai `xml` lib care e usor de folosit (etree). 

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...