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

Trouble with quote marks #220

Open
BabelPR opened this issue Sep 16, 2021 · 3 comments
Open

Trouble with quote marks #220

BabelPR opened this issue Sep 16, 2021 · 3 comments

Comments

@BabelPR
Copy link

BabelPR commented Sep 16, 2021

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

@Chaffy-0
Copy link

Maybe try replacing those with single quotes.

@msb07
Copy link

msb07 commented Jan 25, 2022

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

@BabelPR
Copy link
Author

BabelPR commented Jan 25, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants