unable to scrape content from a website

前端 未结 5 2275
清酒与你
清酒与你 2020-12-06 13:03

I am trying to scrap some content from a website but the code below is not working(not showing any output). here is the code

$url=\"some url\";
$otherHeader         


        
5条回答
  •  一生所求
    2020-12-06 13:55

    I have heard that FireFox adds a tbody element if such isn't present.

    In addition to or independently of @Tomalak's advice, try the XPath expressions with the /tbody location step removed.

    Also, use another tool as the XPath Visualizer to construct correct XPath expressions and see immediately what they are selecting.

提交回复
热议问题