scrapy / scrapy
1 7
import platform
2 7
import sys
3

4 7
import cryptography
5 7
import cssselect
6 7
import lxml.etree
7 7
import parsel
8 7
import twisted
9 7
import w3lib
10

11 7
import scrapy
12 7
from scrapy.utils.ssl import get_openssl_version
13

14

15 7
def scrapy_components_versions():
16 7
    lxml_version = ".".join(map(str, lxml.etree.LXML_VERSION))
17 7
    libxml2_version = ".".join(map(str, lxml.etree.LIBXML_VERSION))
18

19 7
    return [
20
        ("Scrapy", scrapy.__version__),
21
        ("lxml", lxml_version),
22
        ("libxml2", libxml2_version),
23
        ("cssselect", cssselect.__version__),
24
        ("parsel", parsel.__version__),
25
        ("w3lib", w3lib.__version__),
26
        ("Twisted", twisted.version.short()),
27
        ("Python", sys.version.replace("\n", "- ")),
28
        ("pyOpenSSL", get_openssl_version()),
29
        ("cryptography", cryptography.__version__),
30
        ("Platform", platform.platform()),
31
    ]

Read our documentation on viewing source code .

Loading