0 码力 | 266 页 | 1.10 MB | 1 年前
3
  • pdf文档 Scrapy 1.1 Documentation

      ....:
    • 4
    • ....:
    • 5
    • ....:
    • 6
    • ....:
    """) >>> xp = lambda x: sel.xpath(x).extract() This gets all first
  • elements under whatever it is its parent: >>> stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a URIs: – s3://mybucket/path/to/export.csv – s3://aws_key:aws_secret@mybucket/path/to/export.csv • Required external libraries: botocore or boto The AWS credentials can be passed as user/password in the
  • 0 码力 | 260 页 | 1.12 MB | 1 年前
    3
  • pdf文档 Scrapy 1.3 Documentation

      ....:
    • 4
    • ....:
    • 5
    • ....:
    • 6
    • ....:
    """) >>> xp = lambda x: sel.xpath(x).extract() This gets all first
  • elements under whatever it is its parent: >>> stop_on_none=False. Example: >>> from scrapy.loader.processors import Compose >>> proc = Compose(lambda v: v[0], str.upper) >>> proc(['hello', 'world']) 'HELLO' Each function can optionally receive a URIs: – s3://mybucket/path/to/export.csv – s3://aws_key:aws_secret@mybucket/path/to/export.csv • Required external libraries: botocore or boto The AWS credentials can be passed as user/password in the
  • 0 码力 | 272 页 | 1.11 MB | 1 年前
    3
    共 62 条前往