-2

How do I extract all urls for a certain query that contain parameters:

For example:

site:example.com AND inurl:?

But since ? is an special char, I don't how to make that to work.

Thank you in advance.

aDoN
  • 1,877
  • 4
  • 39
  • 55
  • What is your input? What is your expected output? What have you tried so far? – Niitaku Jan 27 '17 at 13:26
  • Escape it with a backslash? Are you trying to search google analytics? `?` is a special character with regex, `AND` is not special in a standard regex engine. Where are you using this? – chris85 Jan 27 '17 at 13:26
  • Just tell me an example, I have tried escaping it, give me an example where it worked please – aDoN Jan 27 '17 at 13:29
  • Where are you using it??? In a URL make it `%3f`, regex `\?`, elsewhere who knows.. – chris85 Jan 27 '17 at 13:29
  • This question has been asked before and has been closed off-topic [here](https://stackoverflow.com/questions/842478/looking-for-special-characters-in-google) – Manfred Radlwimmer Jan 27 '17 at 13:39

1 Answers1

-1

The HTML code for ? is ?

Your query would then be site:example.com AND inurl:?

For example, to constrain a query for Car, the URL will be:

https://www.google.ca/search?site=webhp&source=hp&q=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B&oq=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B

gerowam
  • 383
  • 1
  • 11
  • It works for me. When I google `Car site:example.com AND inurl:?` I get results for `Car site:example.com AND inurl:?` [Here's the example](https://www.google.ca/search?site=webhp&source=hp&q=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B&oq=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B&gs_l=hp.3...1110.8039.0.37757.6.6.0.0.0.0.88.395.6.6.0....0...1c.1.64.hp..0.0.0.0.0VJUhk2SPR8) – gerowam Jan 27 '17 at 13:42
  • yes, but do you get what you really want? which all websites containing parameters – aDoN Jan 28 '17 at 16:12
  • OP had trouble embedding `?`. The answer is to use `?` instead. – gerowam Jan 29 '17 at 19:36
  • Third time now: [Car site:example.com AND inurl:?](https://www.google.ca/search?site=webhp&source=hp&q=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B&oq=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B) – gerowam Jan 30 '17 at 12:34
  • thank you but this query just doesn't return anything – aDoN Jan 30 '17 at 14:12
  • [Screenshot](http://2.1m.yt/saICJDI.png) of google returning the result. Note the `?` coded in the URL as `?`. – gerowam Jan 31 '17 at 15:30