Re: [Python] Xpath 2.0 e Python

2015-06-04 Per discussione Dario Vinella
Potresti provare lxml-xpath2-functions

In [9]: tree.xpath('string-join(//a/tr[1]/td, )')
Out[9]: '1985'
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Non blocking http server e integrazione con database relazionali

2014-03-13 Per discussione Dario Vinella
Il giorno 13 marzo 2014 19:35, Balan Victor balan.vict...@gmail.com ha
scritto:

 E non ho neppure trovato una libreria per collegarsi a qualche tipo di
 database relazione



Per postgres c'รจ momoko ( http://momoko.61924.nl/en/latest/index.html ) che
wrappa psycopg2
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Upload file

2012-03-02 Per discussione Dario Vinella
Il 01 marzo 2012 18:24, Diego Barrera diegonebarr...@yahoo.it ha scritto:
 Ma se non volessi passare per un form html e fare tutto da python?
 Cioe' se volessi inviare questo benedetto file simulando il comportamento
 del form html?

Potresti usare l'ottima requests
http://docs.python-requests.org/en/v0.10.6/user/quickstart/#post-a-multipart-encoded-file

ciao
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python