When scraping Google, I am creating some regex to check to see if certain div elements appear on the search results page.
I don't actually want to extract the div element but just want to know if it exists or not on the page.
How I can I assign a value of "1" if it exists or "0" if it doesn't to the result file like the $misspell variable does?
I don't actually want to extract the div element but just want to know if it exists or not on the page.
How I can I assign a value of "1" if it exists or "0" if it doesn't to the result file like the $misspell variable does?