I am writing a script that scrapes ad listings off a website called Gumtree(Australian Craigslist) using Nightmare.js
and jQuery
and I am getting an error:
(node:15902) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: $ is not defined
I was wondering if the website needs a reference like this:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
for me to scrape it with jQuery.