Note that there are some explanatory texts on larger screens.

plurals
  1. POBeautifulSoup doesnt return all HTML
    primarykey
    data
    text
    <p>so im trying to extract the value of a line of html that looks like this:</p> <pre><code>&lt;input type="hidden" name="_ref_ck" value="41d875b47692bb0211ada153004a663f"&gt; </code></pre> <p>and to get the value im doing:</p> <pre><code>self.ref = soup.find("input",{"name":"_ref_ck"}).get("value") </code></pre> <p>and its working fine for me but i gave a friend of mine the program to beta and he is getting an error like this:</p> <pre><code>Traceback (most recent call last): File "C:\Users\Daniel\AppData\Local\Temp\Rar$DI85.192\Invent Manager.py", line 262, in onOK self.main = GUI(None, -1, 'Inventory Manager') File "C:\Users\Daniel\AppData\Local\Temp\Rar$DI85.192\Invent Manager.py", line 284, in __init__ self.inv.Login(log.user) File "C:\Users\Daniel\AppData\Local\Temp\Rar$DI85.192\Invent Manager.py", line 34, in Login self.get_ref_ck() File "C:\Users\Daniel\AppData\Local\Temp\Rar$DI85.192\Invent Manager.py", line 43, in get_ref_ck self.ref = soup.find('input',{'name':'_ref_ck'}).get("value") AttributeError: 'NoneType' object has no attribute 'get' </code></pre> <p>which means that beautifulSoup is returning a NoneType for some reason </p> <p>so i told him to send me the HTML that the request returns and it was fine then i told him to give me the soup and it only had the the top part of the page and i cant figure out why</p> <p>this means the BS is returning only part of the html its recieving </p> <p>my question is why or if there is an easy way i could do this with regex or something else thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload