25.4 KB
pyquery version 1.2.9-5~jan+unchanged1 (unchanged) vs.
pyquery version 1.4.3+git20210309.1.5e32510-1~jan+nus1 (fresh-snapshots)
25.3 KB
python3-pyquery_1.4.3+git20210309.1.5e32510-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-09-24·06:55:53.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-09-24·06:55:53.000000·debian-binary
2 -rw-r--r--···0········0········0·····1448·2020-09-24·06:55:53.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1440·2020-09-24·06:55:53.000000·control.tar.xz
3 -rw-r--r--···0········0········0····18424·2020-09-24·06:55:53.000000·data.tar.xz3 -rw-r--r--···0········0········0····22884·2020-09-24·06:55:53.000000·data.tar.xz
2.74 KB
control.tar.xz
2.71 KB
control.tar
698 B
file list
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······567·2020-09-24·06:55:53.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······584·2020-09-24·06:55:53.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)·····1420·2020-09-24·06:55:53.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)·····1369·2020-09-24·06:55:53.000000·./md5sums
4 -rwxr-xr-x···0·root·········(0)·root·········(0)······255·2020-09-24·06:55:53.000000·./postinst4 -rwxr-xr-x···0·root·········(0)·root·········(0)······255·2020-09-24·06:55:53.000000·./postinst
5 -rwxr-xr-x···0·root·········(0)·root·········(0)······404·2020-09-24·06:55:53.000000·./prerm5 -rwxr-xr-x···0·root·········(0)·root·········(0)······404·2020-09-24·06:55:53.000000·./prerm
618 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·python3-pyquery1 Package:·python3-pyquery
2 Source:·pyquery2 Source:·pyquery
3 Version:·1.4.3+git20210309.1.5e32510-13 Version:·1.4.3+git20210309.1.5e32510-1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org>5 Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org>
6 Installed-Size:·976 Installed-Size:·114
7 Depends:·python3-lxml,·python3-webob,·python3-cssselect,·python3:any7 Depends:·python3-lxml,·python3-webob,·python3-cssselect,·python3:any
8 Section:·python8 Section:·python
9 Priority:·optional9 Priority:·optional
10 Homepage:·http://pyquery.org/10 Homepage:·http://pyquery.org/
11 Description:·jQuery-like·library·for·python·311 Description:·jQuery-like·library·for·python·3
12 ·pyquery·allows·you·to·make·jQuery·queries·on·XML·documents.·The·API·is·as12 ·pyquery·allows·you·to·make·jQuery·queries·on·XML·documents.·The·API·is·as
13 ·similar·to·jQuery·as·possible.·pyquery·uses·lxml·for·fast·XML·and·HTML13 ·similar·to·jQuery·as·possible.·pyquery·uses·lxml·for·fast·XML·and·HTML
1.4 KB
./md5sums
1.38 KB
line order
    
Offset 1, 16 lines modifiedOffset 1, 15 lines modified
1 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/PKG-INFO1 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/PKG-INFO
2 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/dependency_links.txt2 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/dependency_links.txt
3 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/entry_points.txt3 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/entry_points.txt
4 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/not-zip-safe4 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/not-zip-safe
5 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/requires.txt5 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/requires.txt
6 usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/top_level.txt6 usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/top_level.txt
7 usr/lib/python3/dist-packages/pyquery/__init__.py7 usr/lib/python3/dist-packages/pyquery/__init__.py
8 usr/lib/python3/dist-packages/pyquery/ajax.py 
9 usr/lib/python3/dist-packages/pyquery/cssselectpatch.py8 usr/lib/python3/dist-packages/pyquery/cssselectpatch.py
10 usr/lib/python3/dist-packages/pyquery/openers.py9 usr/lib/python3/dist-packages/pyquery/openers.py
11 usr/lib/python3/dist-packages/pyquery/pyquery.py10 usr/lib/python3/dist-packages/pyquery/pyquery.py
12 usr/lib/python3/dist-packages/pyquery/rules.py11 usr/lib/python3/dist-packages/pyquery/text.py
13 usr/share/doc/python3-pyquery/README.rst12 usr/share/doc/python3-pyquery/README.rst
14 usr/share/doc/python3-pyquery/changelog.Debian.gz13 usr/share/doc/python3-pyquery/changelog.Debian.gz
15 usr/share/doc/python3-pyquery/changelog.gz14 usr/share/doc/python3-pyquery/changelog.gz
16 usr/share/doc/python3-pyquery/copyright15 usr/share/doc/python3-pyquery/copyright
22.0 KB
data.tar.xz
22.0 KB
data.tar
5.48 KB
file list
    
Offset 1, 26 lines modifiedOffset 1, 25 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/
7 -rw-r--r--···0·root·········(0)·root·········(0)······273·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/__init__.py7 -rw-r--r--···0·root·········(0)·root·········(0)······155·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/__init__.py
8 -rw-r--r--···0·root·········(0)·root·········(0)·····2700·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/ajax.py 
9 -rw-r--r--···0·root·········(0)·root·········(0)····12755·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/cssselectpatch.py8 -rw-r--r--···0·root·········(0)·root·········(0)····14618·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/cssselectpatch.py
10 -rw-r--r--···0·root·········(0)·root·········(0)·····1665·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/openers.py9 -rw-r--r--···0·root·········(0)·root·········(0)·····1937·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/openers.py
11 -rw-r--r--···0·root·········(0)·root·········(0)····44811·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/pyquery.py10 -rw-r--r--···0·root·········(0)·root·········(0)····53687·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/pyquery.py
12 -rw-r--r--···0·root·········(0)·root·········(0)·····1037·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery/rules.py11 -rw-r--r--···0·root·········(0)·root·········(0)·····3390·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery/text.py
13 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/
14 -rw-r--r--···0·root·········(0)·root·········(0)·····7097·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/PKG-INFO13 -rw-r--r--···0·root·········(0)·root·········(0)····11102·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/PKG-INFO
15 -rw-r--r--···0·root·········(0)·root·········(0)········1·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/dependency_links.txt14 -rw-r--r--···0·root·········(0)·root·········(0)········1·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/dependency_links.txt
16 -rw-r--r--···0·root·········(0)·root·········(0)·······37·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/entry_points.txt15 -rw-r--r--···0·root·········(0)·root·········(0)·······37·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/entry_points.txt
17 -rw-r--r--···0·root·········(0)·root·········(0)········1·2014-08-22·12:35:30.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/not-zip-safe16 -rw-r--r--···0·root·········(0)·root·········(0)········1·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/not-zip-safe
18 -rw-r--r--···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/requires.txt17 -rw-r--r--···0·root·········(0)·root·········(0)·······49·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/requires.txt
19 -rw-r--r--···0·root·········(0)·root·········(0)········8·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/top_level.txt18 -rw-r--r--···0·root·········(0)·root·········(0)········8·2020-09-24·06:55:53.000000·./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/top_level.txt
20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/19 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/
21 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/doc/20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/doc/
22 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/21 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/
23 -rw-r--r--···0·root·········(0)·root·········(0)·····1988·2014-08-22·12:35:30.000000·./usr/share/doc/python3-pyquery/README.rst22 -rw-r--r--···0·root·········(0)·root·········(0)·····2414·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/README.rst
24 -rw-r--r--···0·root·········(0)·root·········(0)·····1583·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/changelog.Debian.gz23 -rw-r--r--···0·root·········(0)·root·········(0)·····1612·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/changelog.Debian.gz
25 -rw-r--r--···0·root·········(0)·root·········(0)·····1318·2014-08-22·12:35:30.000000·./usr/share/doc/python3-pyquery/changelog.gz24 -rw-r--r--···0·root·········(0)·root·········(0)·····2228·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/changelog.gz
26 -rw-r--r--···0·root·········(0)·root·········(0)·····1972·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/copyright25 -rw-r--r--···0·root·········(0)·root·········(0)·····1972·2020-09-24·06:55:53.000000·./usr/share/doc/python3-pyquery/copyright
444 B
./usr/lib/python3/dist-packages/pyquery/__init__.py
    
Offset 1, 14 lines modifiedOffset 1, 5 lines modified
1 #-*-·coding:utf-8·-*- 
2 # 
3 #·Copyright·(C)·2008·-·Olivier·Lauzanne·<olauzanne@gmail.com>1 #·Copyright·(C)·2008·-·Olivier·Lauzanne·<olauzanne@gmail.com>
4 #2 #
5 #·Distributed·under·the·BSD·license,·see·LICENSE.txt3 #·Distributed·under·the·BSD·license,·see·LICENSE.txt
  
6 try: 
7 ····import·webob 
8 ····import·restkit 
9 except·ImportError: 
10 ····from·.pyquery·import·PyQuery4 from·.pyquery·import·PyQuery··#·NOQA
11 else: 
12 ····from·.ajax·import·PyQuery 
  
2.05 KB
./usr/lib/python3/dist-packages/pyquery/cssselectpatch.py
    
Offset 402, 20 lines modifiedOffset 420, 47 lines modified
402 ········return·xpath420 ········return·xpath
  
403 ····def·xpath_contains_function(self,·xpath,·function):421 ····def·xpath_contains_function(self,·xpath,·function):
404 ········"""Matches·all·elements·that·contain·the·given·text422 ········"""Matches·all·elements·that·contain·the·given·text
  
405 ············>>>·from·pyquery·import·PyQuery423 ············>>>·from·pyquery·import·PyQuery
406 ············>>>·d·=·PyQuery('<div><h1/><h1·class="title">title</h1></div>')424 ············>>>·d·=·PyQuery('<div><h1/><h1·class="title">title</h1></div>')
407 ············>>>·d(':contains("title")')425 ············>>>·d('h1:contains("title")')
408 ············[<h1.title>]426 ············[<h1.title>]
  
409 ········..427 ········..
410 ········"""428 ········"""
411 ········if·function.argument_types()·!=·['STRING']:429 ········if·function.argument_types()·not·in·(['STRING'],·['IDENT']):
412 ············raise·ExpressionError(430 ············raise·ExpressionError(
413 ················"Expected·a·single·string·for·:contains(),·got·%r"·%·(431 ················"Expected·a·single·string·or·ident·for·:contains(),·got·%r"·%·(
414 ····················function.arguments,))432 ····················function.arguments,))
  
415 ········value·=·self.xpath_literal(function.arguments[0].value)433 ········value·=·self.xpath_literal(function.arguments[0].value)
416 ········xpath.add_post_condition("contains(text(),·%s)"·%·value)434 ········xpath.add_post_condition('contains(.,·%s)'·%·value)
 435 ········return·xpath
  
 436 ····def·xpath_has_function(self,·xpath,·function):
 437 ········"""Matches·elements·which·contain·at·least·one·element·that·matches
 438 ········the·specified·selector.·https://api.jquery.com/has-selector/
  
 439 ············>>>·from·pyquery·import·PyQuery
 440 ············>>>·d·=·PyQuery('<div·class="foo"><div·class="bar"></div></div>')
 441 ············>>>·d('.foo:has(".baz")')
 442 ············[]
 443 ············>>>·d('.foo:has(".foo")')
 444 ············[]
 445 ············>>>·d('.foo:has(".bar")')
 446 ············[<div.foo>]
 447 ············>>>·d('.foo:has(div)')
 448 ············[<div.foo>]
  
 449 ········..
 450 ········"""
 451 ········if·function.argument_types()·not·in·(['STRING'],·['IDENT']):
 452 ············raise·ExpressionError(
 453 ················"Expected·a·single·string·or·ident·for·:has(),·got·%r"·%·(
 454 ····················function.arguments,))
 455 ········value·=·self.css_to_xpath(
 456 ············function.arguments[0].value,·prefix='descendant::',
 457 ········)
 458 ········xpath.add_post_condition(value)
417 ········return·xpath459 ········return·xpath
1.54 KB
./usr/lib/python3/dist-packages/pyquery/openers.py
    
Offset 34, 39 lines modifiedOffset 31, 47 lines modified
34 ········if·'?'·not·in·url:31 ········if·'?'·not·in·url:
35 ············url·+=·'?'32 ············url·+=·'?'
36 ········elif·url[-1]·not·in·('?',·'&'):33 ········elif·url[-1]·not·in·('?',·'&'):
37 ············url·+=·'&'34 ············url·+=·'&'
38 ········url·+=·data35 ········url·+=·data
39 ········data·=·None36 ········data·=·None
  
40 ····if·data·and·PY3k:37 ····if·data:
41 ········data·=·data.encode('utf-8')38 ········data·=·data.encode('utf-8')
42 ····return·url,·data39 ····return·url,·data
  
  
43 def·_requests(url,·kwargs):40 def·_requests(url,·kwargs):
  
44 ····encoding·=·kwargs.get('encoding')41 ····encoding·=·kwargs.get('encoding')
45 ····method·=·kwargs.get('method',·'get').lower()42 ····method·=·kwargs.get('method',·'get').lower()
 43 ····session·=·kwargs.get('session')
 44 ····if·session:
 45 ········meth·=·getattr(session,·str(method))
 46 ····else:
46 ····meth·=·getattr(requests,·str(method))47 ········meth·=·getattr(requests,·str(method))
47 ····if·method·==·'get':48 ····if·method·==·'get':
48 ········url,·data·=·_query(url,·method,·kwargs)49 ········url,·data·=·_query(url,·method,·kwargs)
49 ····kw·=·{}50 ····kw·=·{}
50 ····for·k·in·allowed_args:51 ····for·k·in·allowed_args:
51 ········if·k·in·kwargs:52 ········if·k·in·kwargs:
52 ············kw[k]·=·kwargs[k]53 ············kw[k]·=·kwargs[k]
53 ····resp·=·meth(url=url,·**kw)54 ····resp·=·meth(url=url,·timeout=kwargs.get('timeout',·DEFAULT_TIMEOUT),·**kw)
 55 ····if·not·(200·<=·resp.status_code·<·300):
 56 ········raise·HTTPError(resp.url,·resp.status_code,
 57 ························resp.reason,·resp.headers,·None)
54 ····if·encoding:58 ····if·encoding:
55 ········resp.encoding·=·encoding59 ········resp.encoding·=·encoding
56 ····html·=·resp.text60 ····html·=·resp.text
57 ····return·html61 ····return·html
  
  
58 def·_urllib(url,·kwargs):62 def·_urllib(url,·kwargs):
59 ····method·=·kwargs.get('method')63 ····method·=·kwargs.get('method')
60 ····url,·data·=·_query(url,·method,·kwargs)64 ····url,·data·=·_query(url,·method,·kwargs)
61 ····return·urlopen(url,·data)65 ····return·urlopen(url,·data,·timeout=kwargs.get('timeout',·DEFAULT_TIMEOUT))
  
  
62 def·url_opener(url,·kwargs):66 def·url_opener(url,·kwargs):
63 ····if·HAS_REQUEST:67 ····if·HAS_REQUEST:
64 ········return·_requests(url,·kwargs)68 ········return·_requests(url,·kwargs)
65 ····return·_urllib(url,·kwargs)69 ····return·_urllib(url,·kwargs)
1.44 KB
./usr/lib/python3/dist-packages/pyquery/pyquery.py
    
Offset 1419, 16 lines modifiedOffset 1644, 34 lines modified
1419 ········if·base_url·is·None:1644 ········if·base_url·is·None:
1420 ············base_url·=·self.base_url1645 ············base_url·=·self.base_url
1421 ············if·base_url·is·None:1646 ············if·base_url·is·None:
1422 ················raise·ValueError((1647 ················raise·ValueError((
1423 ····················'You·need·a·base·URL·to·make·your·links'1648 ····················'You·need·a·base·URL·to·make·your·links'
1424 ····················'absolute.·It·can·be·provided·by·the·base_url·parameter.'))1649 ····················'absolute.·It·can·be·provided·by·the·base_url·parameter.'))
  
 1650 ········def·repl(attr):
1425 ········def·repl(i,·e):1651 ············def·rep(i,·e):
 1652 ················attr_value·=·self(e).attr(attr)
 1653 ················#·when·label·hasn't·such·attr,·pass
 1654 ················if·attr_value·is·None:
 1655 ····················return·None
  
 1656 ················#·skip·specific·"protocol"·schemas
 1657 ················if·any(attr_value.startswith(schema)
 1658 ·······················for·schema·in·('tel:',·'callto:',·'sms:')):
 1659 ····················return·None
  
1426 ············return·self(e).attr(1660 ················return·self(e).attr(attr,
1427 ················'href', 
1428 ················urljoin(base_url,·self(e).attr('href')))1661 ····································urljoin(base_url,·attr_value.strip()))
 1662 ············return·rep
  
 1663 ········self('a').each(repl('href'))
 1664 ········self('link').each(repl('href'))
 1665 ········self('script').each(repl('src'))
 1666 ········self('img').each(repl('src'))
 1667 ········self('iframe').each(repl('src'))
 1668 ········self('form').each(repl('action'))
  
1429 ········self('a').each(repl) 
1430 ········return·self1669 ········return·self
  
  
1431 build_camel_case_aliases(PyQuery)1670 build_camel_case_aliases(PyQuery)
1.69 KB
./usr/share/doc/python3-pyquery/README.rst
    
Offset 1, 29 lines modifiedOffset 1, 45 lines modified
1 pyquery:·a·jquery-like·library·for·python1 pyquery:·a·jquery-like·library·for·python
2 =========================================2 =========================================
  
 3 ..·image::·https://travis-ci.org/gawel/pyquery.svg
 4 ···:alt:·Build·Status
 5 ···:target:·https://travis-ci.org/gawel/pyquery
  
3 pyquery·allows·you·to·make·jquery·queries·on·xml·documents.6 pyquery·allows·you·to·make·jquery·queries·on·xml·documents.
4 The·API·is·as·much·as·possible·the·similar·to·jquery.·pyquery·uses·lxml·for·fast7 The·API·is·as·much·as·possible·the·similar·to·jquery.·pyquery·uses·lxml·for·fast
5 xml·and·html·manipulation.8 xml·and·html·manipulation.
  
6 This·is·not·(or·at·least·not·yet)·a·library·to·produce·or·interact·with9 This·is·not·(or·at·least·not·yet)·a·library·to·produce·or·interact·with
7 javascript·code.·I·just·liked·the·jquery·API·and·I·missed·it·in·python·so·I10 javascript·code.·I·just·liked·the·jquery·API·and·I·missed·it·in·python·so·I
8 told·myself·"Hey·let's·make·jquery·in·python".·This·is·the·result.11 told·myself·"Hey·let's·make·jquery·in·python".·This·is·the·result.
  
9 The·`project`_·is·being·actively·developped·on·a·git·repository·on·Github.·I12 The·`project`_·is·being·actively·developped·on·a·git·repository·on·Github.·I
10 have·the·policy·of·giving·push·access·to·anyone·who·wants·it·and·then·to·review13 have·the·policy·of·giving·push·access·to·anyone·who·wants·it·and·then·to·review
11 what·he·does.·So·if·you·want·to·contribute·just·email·me.14 what·they·do.·So·if·you·want·to·contribute·just·email·me.
  
12 Please·report·bugs·on·the·`github15 Please·report·bugs·on·the·`github
13 <https://github.com/gawel/pyquery/issues>`_·issue16 <https://github.com/gawel/pyquery/issues>`_·issue
14 tracker.17 tracker.
  
15 ..·_deliverance:·http://www.gawel.org/weblog/en/2008/12/skinning-with-pyquery-and-deliverance18 ..·_deliverance:·http://www.gawel.org/weblog/en/2008/12/skinning-with-pyquery-and-deliverance
16 ..·_project:·https://github.com/gawel/pyquery/19 ..·_project:·https://github.com/gawel/pyquery/
  
 20 I've·spent·hours·maintaining·this·software,·with·love.
 21 Please·consider·tiping·if·you·like·it:
  
 22 BTC:·1PruQAwByDndFZ7vTeJhyWefAghaZx9RZg
  
 23 ETH:·0xb6418036d8E06c60C4D91c17d72Df6e1e5b15CE6
  
 24 LTC:·LY6CdZcDbxnBX9GFBJ45TqVj8NykBBqsmT
  
 25 ..
 26 ···>>>·(urlopen,·your_url,·path_to_html_file)·=·getfixture('readme_fixt')
  
17 Quickstart27 Quickstart
18 ==========28 ==========
  
19 You·can·use·the·PyQuery·class·to·load·an·xml·document·from·a·string,·a·lxml29 You·can·use·the·PyQuery·class·to·load·an·xml·document·from·a·string,·a·lxml
20 document,·from·a·file·or·from·an·url::30 document,·from·a·file·or·from·an·url::
  
21 ····>>>·from·pyquery·import·PyQuery·as·pq31 ····>>>·from·pyquery·import·PyQuery·as·pq
653 B
./usr/share/doc/python3-pyquery/changelog.Debian.gz
551 B
changelog.Debian
    
Offset 10, 15 lines modifiedOffset 10, 15 lines modified
10 ····contact·address.10 ····contact·address.
11 ··*·d/control:·Update·Vcs-*·fields·with·new·Debian·Python·Team·Salsa11 ··*·d/control:·Update·Vcs-*·fields·with·new·Debian·Python·Team·Salsa
12 ····layout.12 ····layout.
  
13 ··[·Debian·Janitor·]13 ··[·Debian·Janitor·]
14 ··*·Build·for·debian-janitor·apt·repository.14 ··*·Build·for·debian-janitor·apt·repository.
  
15 ·--·Debian·Janitor·<janitor@jelmer.uk>··Sat,·10·Apr·2021·10:48:24·-000015 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·05·Apr·2021·08:33:40·-0000
  
16 pyquery·(1.2.9-4)·unstable;·urgency=medium16 pyquery·(1.2.9-4)·unstable;·urgency=medium
  
17 ··[·Ondřej·Nový·]17 ··[·Ondřej·Nový·]
18 ··*·Convert·git·repository·from·git-dpm·to·gbp·layout18 ··*·Convert·git·repository·from·git-dpm·to·gbp·layout
19 ··*·Use·debhelper-compat·instead·of·debian/compat.19 ··*·Use·debhelper-compat·instead·of·debian/compat.
  
3.43 KB
./usr/share/doc/python3-pyquery/changelog.gz
3.34 KB
changelog
    
Offset 36, 114 lines modifiedOffset 159, 113 lines modified
36 -·Fixed·#23:·removeClass·adds·class·attribute·to·elements·which·previously159 -·Fixed·#23:·removeClass·adds·class·attribute·to·elements·which·previously
37 ··lacked·one160 ··lacked·one
  
  
38 1.2.6·(2013-10-11)161 1.2.6·(2013-10-11)
39 ------------------162 ------------------
  
40 README_fixt.py·was·not·include·in·the·release.·Fix·#54.163 -·README_fixt.py·was·not·include·in·the·release.·Fix·#54.
  
  
41 1.2.5·(2013-10-10)164 1.2.5·(2013-10-10)
42 ------------------165 ------------------
  
43 cssselect·compat.·See·https://github.com/SimonSapin/cssselect/pull/22166 -·cssselect·compat.·See·https://github.com/SimonSapin/cssselect/pull/22
  
44 tests·improvments.·no·longer·require·a·eth·connection.167 -·tests·improvments.·no·longer·require·a·eth·connection.
  
45 fix·#55168 -·fix·#55
  
46 1.2.4169 1.2.4
47 -----170 -----
  
48 Moved·to·github.·So·a·few·files·are·renamed·from·.txt·to·.rst171 -·Moved·to·github.·So·a·few·files·are·renamed·from·.txt·to·.rst
  
49 Added·.xhtml_to_html()·and·.remove_namespaces()172 -·Added·.xhtml_to_html()·and·.remove_namespaces()
  
50 Use·requests·to·fetch·urls·(if·available)173 -·Use·requests·to·fetch·urls·(if·available)
  
51 Use·restkit's·proxy·instead·of·Paste·(which·will·die·with·py3)174 -·Use·restkit's·proxy·instead·of·Paste·(which·will·die·with·py3)
  
52 Allow·to·open·https·urls175 -·Allow·to·open·https·urls
  
53 python2.5·is·no·longer·supported·(may·work,·but·tests·are·broken)176 -·python2.5·is·no·longer·supported·(may·work,·but·tests·are·broken)
  
54 1.2.3177 1.2.3
55 -----178 -----
  
56 Allow·to·pass·this·in·.filter()·callback179 -·Allow·to·pass·this·in·.filter()·callback
  
57 Add·.contents()·.items()180 -·Add·.contents()·.items()
  
58 Add·tox.ini181 -·Add·tox.ini
  
59 Bug·fixes:·fix·#35·#55·#64·#66182 -·Bug·fixes:·fix·#35·#55·#64·#66
  
60 1.2.2183 1.2.2
61 -----184 -----
  
62 Fix·cssselectpatch·to·match·the·newer·implementation·of·cssselect.·Fixes·issue·#62,·#52·and·#59·(Haoyu·Bai)185 -·Fix·cssselectpatch·to·match·the·newer·implementation·of·cssselect.·Fixes·issue·#62,·#52·and·#59·(Haoyu·Bai)
  
63 Fix·issue·#37·(Caleb·Burns)186 -·Fix·issue·#37·(Caleb·Burns)
  
64 1.2.1187 1.2.1
65 -----188 -----
  
66 Allow·to·use·a·custom·css·translator.189 -·Allow·to·use·a·custom·css·translator.
  
67 Fix·issue·44:·case·problem·with·xml·documents190 -·Fix·issue·44:·case·problem·with·xml·documents
  
68 1.2191 1.2
69 ---192 ---
  
70 PyQuery·now·use·`cssselect·<http://pypi.python.org/pypi/cssselect>`_.·See·issue193 -·PyQuery·now·uses·`cssselect·<http://pypi.python.org/pypi/cssselect>`_.·See·issue·43.
71 43. 
  
72 Fix·issue·40:·forward·.html()·extra·arguments·to·``lxml.etree.tostring``194 -·Fix·issue·40:·forward·.html()·extra·arguments·to·``lxml.etree.tostring``
  
73 1.1.1195 1.1.1
74 -----196 -----
  
75 Minor·release.·Include·test·file·so·you·can·run·tests·from·the·tarball.197 -·Minor·release.·Include·test·file·so·you·can·run·tests·from·the·tarball.
  
  
76 1.1198 1.1
77 ---199 ---
  
78 fix·issues·30,·31,·32·-·py3·improvements·/·webob·1.2+·support200 -·fix·issues·30,·31,·32·-·py3·improvements·/·webob·1.2+·support
  
  
79 1.0201 1.0
80 ---202 ---
  
81 fix·issues·24203 -·fix·issues·24
  
82 0.7204 0.7
83 ---205 ---
  
84 Python·3·compatible206 -·Python·3·compatible
  
85 Add·__unicode__·method207 -·Add·__unicode__·method
  
86 Add·root·and·encoding·attribute208 -·Add·root·and·encoding·attribute
  
87 fix·issues·19,·20,·22,·23·209 -·fix·issues·19,·20,·22,·23·
  
88 0.6.1210 0.6.1
89 ------211 ------
  
90 Move·README.txt·at·package·root212 -·Move·README.txt·at·package·root
  
91 Add·CHANGES.txt·and·add·it·to·long_description213 -·Add·CHANGES.txt·and·add·it·to·long_description
  
92 0.6214 0.6
93 ----215 ----
  
94 Added·PyQuery.outerHtml216 -·Added·PyQuery.outerHtml
  
95 Added·PyQuery.fn217 -·Added·PyQuery.fn
  
96 Added·PyQuery.map218 -·Added·PyQuery.map
  
97 Change·PyQuery.each·behavior·to·reflect·jQuery·api219 -·Change·PyQuery.each·behavior·to·reflect·jQuery·api
  
  
5.29 KB
./usr/lib/python3/dist-packages/pyquery-1.2.9.egg-info/PKG-INFO vs.
./usr/lib/python3/dist-packages/pyquery-1.4.4.dev0.egg-info/PKG-INFO
Files 26% similar despite different names
    
Offset 113, 127 lines modifiedOffset 252, 125 lines modified
113 ········-·Fixed·#23:·removeClass·adds·class·attribute·to·elements·which·previously252 ········-·Fixed·#23:·removeClass·adds·class·attribute·to·elements·which·previously
114 ··········lacked·one253 ··········lacked·one
115 ········254 ········
116 ········255 ········
117 ········1.2.6·(2013-10-11)256 ········1.2.6·(2013-10-11)
118 ········------------------257 ········------------------
119 ········258 ········
120 ········README_fixt.py·was·not·include·in·the·release.·Fix·#54.259 ········-·README_fixt.py·was·not·include·in·the·release.·Fix·#54.
121 ········260 ········
122 ········261 ········
123 ········1.2.5·(2013-10-10)262 ········1.2.5·(2013-10-10)
124 ········------------------263 ········------------------
125 ········264 ········
126 ········cssselect·compat.·See·https://github.com/SimonSapin/cssselect/pull/22265 ········-·cssselect·compat.·See·https://github.com/SimonSapin/cssselect/pull/22
127 ········266 ········
128 ········tests·improvments.·no·longer·require·a·eth·connection.267 ········-·tests·improvments.·no·longer·require·a·eth·connection.
129 ········268 ········
130 ········fix·#55269 ········-·fix·#55
131 ········270 ········
132 ········1.2.4271 ········1.2.4
133 ········-----272 ········-----
134 ········273 ········
135 ········Moved·to·github.·So·a·few·files·are·renamed·from·.txt·to·.rst274 ········-·Moved·to·github.·So·a·few·files·are·renamed·from·.txt·to·.rst
136 ········275 ········
137 ········Added·.xhtml_to_html()·and·.remove_namespaces()276 ········-·Added·.xhtml_to_html()·and·.remove_namespaces()
138 ········277 ········
139 ········Use·requests·to·fetch·urls·(if·available)278 ········-·Use·requests·to·fetch·urls·(if·available)
140 ········279 ········
141 ········Use·restkit's·proxy·instead·of·Paste·(which·will·die·with·py3)280 ········-·Use·restkit's·proxy·instead·of·Paste·(which·will·die·with·py3)
142 ········281 ········
143 ········Allow·to·open·https·urls282 ········-·Allow·to·open·https·urls
144 ········283 ········
145 ········python2.5·is·no·longer·supported·(may·work,·but·tests·are·broken)284 ········-·python2.5·is·no·longer·supported·(may·work,·but·tests·are·broken)
146 ········285 ········
147 ········1.2.3286 ········1.2.3
148 ········-----287 ········-----
149 ········288 ········
150 ········Allow·to·pass·this·in·.filter()·callback289 ········-·Allow·to·pass·this·in·.filter()·callback
151 ········290 ········
152 ········Add·.contents()·.items()291 ········-·Add·.contents()·.items()
153 ········292 ········
154 ········Add·tox.ini293 ········-·Add·tox.ini
155 ········294 ········
156 ········Bug·fixes:·fix·#35·#55·#64·#66295 ········-·Bug·fixes:·fix·#35·#55·#64·#66
157 ········296 ········
158 ········1.2.2297 ········1.2.2
159 ········-----298 ········-----
160 ········299 ········
161 ········Fix·cssselectpatch·to·match·the·newer·implementation·of·cssselect.·Fixes·issue·#62,·#52·and·#59·(Haoyu·Bai)300 ········-·Fix·cssselectpatch·to·match·the·newer·implementation·of·cssselect.·Fixes·issue·#62,·#52·and·#59·(Haoyu·Bai)
162 ········301 ········
163 ········Fix·issue·#37·(Caleb·Burns)302 ········-·Fix·issue·#37·(Caleb·Burns)
164 ········303 ········
165 ········1.2.1304 ········1.2.1
166 ········-----305 ········-----
167 ········306 ········
168 ········Allow·to·use·a·custom·css·translator.307 ········-·Allow·to·use·a·custom·css·translator.
169 ········308 ········
170 ········Fix·issue·44:·case·problem·with·xml·documents309 ········-·Fix·issue·44:·case·problem·with·xml·documents
171 ········310 ········
172 ········1.2311 ········1.2
173 ········---312 ········---
174 ········313 ········
175 ········PyQuery·now·use·`cssselect·<http://pypi.python.org/pypi/cssselect>`_.·See·issue314 ········-·PyQuery·now·uses·`cssselect·<http://pypi.python.org/pypi/cssselect>`_.·See·issue·43.
176 ········43. 
177 ········315 ········
178 ········Fix·issue·40:·forward·.html()·extra·arguments·to·``lxml.etree.tostring``316 ········-·Fix·issue·40:·forward·.html()·extra·arguments·to·``lxml.etree.tostring``
179 ········317 ········
180 ········1.1.1318 ········1.1.1
181 ········-----319 ········-----
182 ········320 ········
183 ········Minor·release.·Include·test·file·so·you·can·run·tests·from·the·tarball.321 ········-·Minor·release.·Include·test·file·so·you·can·run·tests·from·the·tarball.
184 ········322 ········
185 ········323 ········
186 ········1.1324 ········1.1
187 ········---325 ········---
188 ········326 ········
189 ········fix·issues·30,·31,·32·-·py3·improvements·/·webob·1.2+·support327 ········-·fix·issues·30,·31,·32·-·py3·improvements·/·webob·1.2+·support
190 ········328 ········
191 ········329 ········
192 ········1.0330 ········1.0
193 ········---331 ········---
194 ········332 ········
195 ········fix·issues·24333 ········-·fix·issues·24
196 ········334 ········
197 ········0.7335 ········0.7
198 ········---336 ········---
199 ········337 ········
200 ········Python·3·compatible338 ········-·Python·3·compatible
201 ········339 ········
202 ········Add·__unicode__·method340 ········-·Add·__unicode__·method
203 ········341 ········
204 ········Add·root·and·encoding·attribute342 ········-·Add·root·and·encoding·attribute
205 ········343 ········
206 ········fix·issues·19,·20,·22,·23·344 ········-·fix·issues·19,·20,·22,·23·
207 ········345 ········
208 ········0.6.1346 ········0.6.1
209 ········------347 ········------
210 ········348 ········
211 ········Move·README.txt·at·package·root349 ········-·Move·README.txt·at·package·root
212 ········350 ········
213 ········Add·CHANGES.txt·and·add·it·to·long_description351 ········-·Add·CHANGES.txt·and·add·it·to·long_description
214 ········352 ········
215 ········0.6353 ········0.6
216 ········----354 ········----
217 ········355 ········
218 ········Added·PyQuery.outerHtml356 ········-·Added·PyQuery.outerHtml
219 ········357 ········
220 ········Added·PyQuery.fn358 ········-·Added·PyQuery.fn
221 ········359 ········
222 ········Added·PyQuery.map360 ········-·Added·PyQuery.map
223 ········361 ········
224 ········Change·PyQuery.each·behavior·to·reflect·jQuery·api362 ········-·Change·PyQuery.each·behavior·to·reflect·jQuery·api
225 ········363 ········
226 ········364 ········
227 ········365 ········
228 ········366 ········
229 ········367 ········
230 Keywords:·jquery·html·xml·scraping368 Keywords:·jquery·html·xml·scraping
231 Platform:·UNKNOWN369 Platform:·UNKNOWN
232 Classifier:·Intended·Audience·::·Developers370 Classifier:·Intended·Audience·::·Developers
233 Classifier:·Development·Status·::·5·-·Production/Stable371 Classifier:·Development·Status·::·5·-·Production/Stable
234 Classifier:·Programming·Language·::·Python·::·2 
235 Classifier:·Programming·Language·::·Python·::·2.6 
236 Classifier:·Programming·Language·::·Python·::·2.7 
237 Classifier:·Programming·Language·::·Python·::·3372 Classifier:·Programming·Language·::·Python·::·3
238 Classifier:·Programming·Language·::·Python·::·3.3373 Classifier:·Programming·Language·::·Python·::·3.5
239 Classifier:·Programming·Language·::·Python·::·3.4374 Classifier:·Programming·Language·::·Python·::·3.6
Max diff block lines reached; -1/5248 bytes (-0.02%) of diff not shown.