Open pythonlxml opened 9 years ago
It has some dependencies with c code libraries, so we need to cross-compile it,
we will try to compile it later, now can you use an alternative now ?
i hope you guys can cross-compile it, it would be very helpful. i don't know of an alternative for lxml.
I'm joining to the request. I also use lxml in my code. It would be great to have it in QPython3.
any success?
Sorry guys, I am a little busy recently,
I have compiled the lxml for QPython, you can install it though the library manage from setting page.
Can you test it and tell whether it works for you ?
Thanks for the update. I was not able to run the program.
from lxml import html import requests
page = requests.get('http://econpy.pythonanywhere.com/ex/001.html') tree = html.fromstring(page.text)
buyers = tree.xpath('//div[@title="buyer-name"]/text()') prices = tree.xpath('//span[@class="item-price"]/text()')
print 'Buyers: ', buyers print 'Prices: ', prices
From - http://docs.python-guide.org/en/latest/scenarios/scrape/ I am not sure if it is because of requests. I did pip install requests and it said successfully installed.
any update?
Sorry, I haven't tested your code, can you create some simple xml document for testing ?
sure xml document (note.xml) http://pastebin.com/LAC3QDVE working code for python http://pastebin.com/Dxm9hRaX
where you able to run it?
I could run the following sample successfully
"xml document (note.xml) http://pastebin.com/LAC3QDVE working code for python http://pastebin.com/Dxm9hRaX "
But I couldn't run the previous sample, I have looked into this issue, maybe the lxml packages contains some wrong .so libraries, I will check that and try to fix it.
thanks for the update :)
+1 for this. I'm using QPython3 and couldn't find lxml under Libraries manage
.
I'd need this too, anyone who cross compiled it successfully?
Joining this thread
I am one of those who wait. Thanks.
I'm able to get this working in Pydroid 3, but want to do the same in QPython since it has the capability to keep scripts running in the background. Has anyone here had any success with lxml?
Anyone who cross compiled it successfully? It goes wrong with the etree.
Hello,
is there a chance to use lxml on Android?
Thanks...
Still not working for 10 years :-) can not pip install lxml because the qpython python version is 3.6.6 but lxml requires v>3.7. I've already tried to install every other older versions of lxml but no luck. Any help will be appreciated.
i tired to pip install lxml but its giving me a error. Is there a way to install lxml on Qpython?