pyquery icon indicating copy to clipboard operation
pyquery copied to clipboard

A jquery-like library for python

Results 62 pyquery issues
Sort by recently updated
recently updated
newest added

I use pyquery like this `from pyquery import PyQuery if __name__ == '__main__': query = PyQuery('AABBCC') need_remove_dict = dict() for item in query('span').items(): item.remove() print(query.outer_html())` I except got 'AACC' but...

Consider the following: [jsfiddle](https://jsfiddle.net/mw30tohp/1/) code: ``` a = $("div") b = $('[page="2"]') a.filter(b).css("color", "red") ``` As you can see, filter accepts another jquery object. PyQuery however throws the following exception:...

contents() method is extremely useful to deal with a node that has text node child. However, it seems that can't generate correct childnodes in that following case. Consider ``` from...

See https://github.com/rjsparks/test_pyquery. On some platforms `q('#whatever').html()` returns html beyond the id-whatever element. ``` =================================== FAILURES =================================== _________________________________ test_pyquery _________________________________ def test_pyquery(): doc = \ """ title Hi There """ q...

When I first started to learn how to use pyquery on windows10 with python3.9.5 and pyquery1.4.3, the selection results seems weird: ```python html = ''' first item second item third...

Hi, when I try to parse a html string, Tested in python command line: >>>from pyquery import PyQuery as pq >>>t = pq('<span class="test">.</span>') >>>o = t("span.test").html() >>>print(o) [ ....

``` + /usr/bin/python3 -B -m pytest =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 rootdir: /home/tkloczko/rpmbuild/BUILD/pyquery-1.4.3 plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, pyfakefs-4.1.0, cov-2.11.1,...

Hi, first of all thank you for your great tool! I really like to have this as a python library :) During some of my unit-tests I discovered some behavior...

```py with open('file.txt', 'w') as f: f.write('') pq = PyQuery(filename='file.txt') pq.find('div') ``` raises an attribute error. It doesn't appear PyQuery can do anything useful with an empty file, so perhaps...

it is found that .eq(index) selector works well as a outer selctor ,but not in filter string. Below is test function ``` python def test_a(): s = ''' 1 2...