how to crawl the javascript:submitAction_win0 using scrapy with python?

739 views
Skip to first unread message

john kin

unread,
Oct 24, 2014, 8:21:50 AM10/24/14
to scrapy...@googlegroups.com
I am very new to "scrapy", i am scrapping a website and in that i had some anchor tags which consists of href attributes with href="javascript:submitAction_win0(document.win0,'SCH_JOB_TITLE_LINK$0') functions. When i clicked that javascript function a page is opening from which i need to fetch data.I used Xpath and found href for particular anchor tags but unable to execute that href attribute that contains javascript function. Can anyone tell me how to execute href="javascript:submitAction_win0(document.win0,'SCH_JOB_TITLE_LINK$0') of anchor tags in scrapy python.My HTML code is



<td id="tdHRS_AGNT_RSLT_I$0#3" class="PSLEVEL1GRIDODDROW" width="166" align="left" style="background-color: rgb(212, 219, 217);">
<div id="win0divSCH_JOB_TITLE_LINK$0" style="width:166px;">
<span class="PSHYPERLINK">
<a id="SCH_JOB_TITLE_LINK$0" class="PSHYPERLINK" href="javascript:submitAction_win0(document.win0,'SCH_JOB_TITLE_LINK$0');" tabindex="332" ptlinktgt="pt_peoplecode" name="SCH_JOB_TITLE_LINK$0">Exercise Physiologist, Cardiac Rehab, Resource</a>
</span>
</div>
</td>
Reply all
Reply to author
Forward
0 new messages