简体   繁体   中英

How to scrape specific information from javascript webpage by Selenium Python?

I can't scrape the 'Resolution' field from the javascript webpage, as I believe. Webpage address: https://support.na.sage.com/selfservice/viewdocument.do?noCount=true&externalId=60390&sliceId=1&noCount=true&isLoadPublishedVer=&docType=kc&docTypeID=DT_Article&stateId=4183&cmd=displayKC&dialogID=197243&ViewedDocsListHelper=com.kanisa.apps.common.BaseViewedDocsListHelperImpl&openedFromSearchResults=true I need to extract Description, Cause, and Resolution.

Tried various ways to get element, including:

  • find_element_by_xpath
  • find_element_by_id
  • find_element_by_class_name.

Nothing gave the desired result. Could you direct me in which way should I work?

https://support.na.sage.com/selfservice/viewContent.do?externalId=60390&sliceId=1 This is the correct url that you can crawl html, use Network tab of your browser devtool to find that. Example with Chrome 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM