UnixDevel Posted April 28, 2021 Report Share Posted April 28, 2021 (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 April 28, 2021 by lzomedia Quote Link to comment Share on other sites More sharing options...
Nytro Posted April 28, 2021 Report Share Posted April 28, 2021 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'>) Si il folosesti cum vrei, poti face niste for-uri/while-uri cand sunt mai multe... Quote Link to comment Share on other sites More sharing options...
UnixDevel Posted April 28, 2021 Author Report Share Posted April 28, 2021 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'>) 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 . 1 Quote Link to comment Share on other sites More sharing options...
Active Members MrGrj Posted April 28, 2021 Active Members Report Share Posted April 28, 2021 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). 1 Quote Link to comment Share on other sites More sharing options...
Che Posted April 28, 2021 Report Share Posted April 28, 2021 Beautifulsoup. 1 Quote Link to comment Share on other sites More sharing options...
UnixDevel Posted April 28, 2021 Author Report Share Posted April 28, 2021 9 hours ago, MrGrj said: E prea mult cod? Sunt doua linii Mai ai `xml` lib care e usor de folosit (etree). da la importat dar ca sa ma apuc sa citesc fiecare nod ? Quote Link to comment Share on other sites More sharing options...
UnixDevel Posted April 28, 2021 Author Report Share Posted April 28, 2021 8 hours ago, Che said: Beautifulsoup. m-am gandit la asta . nu stiu din pacate ce implicari are la performanta Quote Link to comment Share on other sites More sharing options...