Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Trouble with quote marks #220

Open
Open

Description

@BabelPR

I'm using this script to import json via an API with the API call in the following format:

https://api.scaleserp.com/search?api_key=MY_API_KEY&q="test+search"&google_domain=google.co.uk&location=United+Kingdom&gl=uk&hl=en&search_type=news&time_period=custom&time_period_min=6/1/2021&time_period_max=7/31/2021&page=1&num=100&output=json

I need the quote marks ("test search") to get the API in question to deliver an exact match from a Google search but for some reason the script doesn't like it. It works perfectly well without the quote marks but that doesn't give me the exact match results I need. I can also get the required output by simply pasting that API call into a browser so for some reason the script just doesn't like the quotes.

Any ideas how I can fix this?

Ian

Activity

  1. Chaffy-0 commented on Jan 21, 2022

    @Chaffy-0

    Maybe try replacing those with single quotes.

  2. msb07 commented on Jan 25, 2022

    @msb07

    any solution for that, tried with single quotes but doesn't work either

  3. BabelPR commented on Jan 25, 2022

    @BabelPR
    Author

    Yes, use the encoded format for the quote mark I.e. %22 instead of “

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions