id: api-abstract-website-scraping

info:
  name: Abstract Api Web Scraping Test
  author: daffainfo
  severity: info
  description: Scrape and extract data from any website, with powerful options like proxy / browser customization, CAPTCHA handling, ad blocking, and more.
  reference:
    - https://www.abstractapi.com/api/web-scraping-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-website-scraping
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://scrape.abstractapi.com/v1/?api_key={{token}}&url=https://test.test"

    matchers:
      - type: word
        part: body
        words:
          - '"code":"validation_error"'
          - 'Reached error page'
        condition: and
# digest: 4b0a00483046022100a573bf6788261cf8976735731f549cfad287b4bcb16f89f4c8d6b83e43f6e045022100e40778e3c64c3def86d25fbbb9e2341fa11f4bb434acb5ee6aef9e3e27dbf0cc:922c64590222798bb761d5b6d8e72950