数据交换:从脚本标签提取数据

时间:2020-08-25 17:18:54

标签: python python-3.x

'''
<head>
'''
{script class="w-json-ld" type="application/ld+json">{"@context":"http://schema.org/","uploadDate":"2020-01-02","description":"a school_260961 video"}
</script}
'''
<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}
</style>
.
.
.
</head>
'''

当我运行python脚本以获取数据时,整个脚本标签将变得不可见,我该如何从中提取数据。尽管它在浏览器中可见

0 个答案:

没有答案