How to Get Script Tag Variables From a Website using Python
问题 I am trying to pull a variable called meta in a script tag using Python. I have used selenium to do this before, but selenium is too slow for what I am trying to accomplish. Is there any other way of doing this. I have tried using BeautifulSoup, but I'm stuck... code is below Here is the script tag I'm trying to get the meta variable from: <script>window.ShopifyAnalytics = window.ShopifyAnalytics || {}; window.ShopifyAnalytics.meta = window.ShopifyAnalytics.meta || {}; window.ShopifyAnalytics