Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scraping video src fail
#5
what if the HTML page has double html like this, I went to get but it is empty


<head/>
<body data-rsssl="1">
<div class ="wrapper section medium-padding">
  <div class = "section-inner">
  <div class = "content fleft">
  <div id="post-1111">
    <div class="post-content">
      <div style="text-align:center;">
        <div style="text-align:center;" class="player_wrapper">
          <iframe id="allmyplayer" name="allmyplayer">
   #document
          <html>
          <head>www </head>
            <body>
                 <div id="container">
                   <div tableindex= -1>
                      <video id="my_video_1_html5_api" class="vjs-tech" controlslist="nodownload" preload="auto" poster="https://vs02.520call.me/files/mp4/1/13cDq.jpg" data-setup="{&quot;example_option&quot;:true, &quot;inactivityTimeout&quot;: 0}" tabindex="-1" src="blob:https://video.520call.me/bce3f239-3627-4893-a458-5605f3eb978b"><source src="https://vs02.520call.me/files/mp4/1/13cDq.m3u8?t=1625961526" type="application/vnd.apple.mpegurl"></video>
                   </div>
                 </div>
Output:
>>> video_tag = driver.find_elements_by_xpath('//*[@id="my_video_1_html5_api"]/source') >>> video_tag []

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
scraping video src fail - by jacklee26 - Jul-10-2021, 01:29 PM
RE: scraping video src fail - by snippsat - Jul-10-2021, 02:16 PM
RE: scraping video src fail - by jacklee26 - Jul-10-2021, 07:17 PM
RE: scraping video src fail - by snippsat - Jul-10-2021, 08:17 PM
RE: scraping video src fail - by jacklee26 - Jul-11-2021, 02:32 AM
RE: scraping video src fail - by snippsat - Jul-11-2021, 09:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why does [root.destroy, exit()]) fail after pyinstaller? Rpi Edward_ 4 720 Oct-18-2023, 11:09 PM
Last Post: Edward_
  How to calculated how many fail in each site(s) in csv files SamLiu 4 1,385 Sep-26-2022, 06:28 AM
Last Post: SamLiu
  Imports that work with Python 3.8 fail with 3.9 and 3.10 4slam 1 2,696 Mar-11-2022, 01:50 PM
Last Post: snippsat
  [SOLVED] Why does regex fail cleaning line? Winfried 5 2,580 Aug-22-2021, 06:59 PM
Last Post: Winfried
  fail to upgrade pygobject jiapei100 0 3,129 Aug-16-2018, 10:32 AM
Last Post: jiapei100
  Fail to allocate bitmap rsbeesh 7 15,951 Dec-13-2017, 01:36 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020