How to get link from onclick event using Scrapy?
<p>I've been using Scrapy for getting content but I am having some trouble getting links from this particular site:<a href="https://cantire.taleo.net/careersection/2/joblist.ftl" rel="nofollow">Taleo Site</a></p>

<p>Clicking the title takes you to the job description. But the href is set to '#'. </p>

<p>And the onclick event is:</p>

<pre><code>onclick="javascript:setEvent(event);requisition_openRequisitionDescription('requisitionListInterface','actOpenRequisitionDescription',_ftl_api.lstVal('requisitionListInterface', 'requisitionListInterface.listRequisition', 'requisitionListInterface.ID1380', this),_ftl_api.intVal('requisitionListInterface', 'requisitionListInterface.ID1384', this));return ftlUtil_followLink(this);
</code></pre>

<p>Also the link for all job descriptions is the same for all jobs. All of the description links are: </p>

<blockquote>
  <p><a href="https://cantire.taleo.net/careersection/2/jobdetail.ftl" rel="nofollow">https://cantire.taleo.net/careersection/2/jobdetail.ftl</a></p>
</blockquote>

<p>I've been using scrapy for a while and would like to following the link and scrape the content. I'm just having trouble with this sort of setup where the href attribute is '#' and the link is created by JavaScript. </p>

<p>In the past I would do the following to get links and follow them, but in this case this doesn't work.</p>

<pre><code>item['link'] = sel.xpath('@href').extract()[0]
</code></pre>

<p>How can I fix this? Thanks</p>