inetauto Posted July 19, 2020 Share Posted July 19, 2020 The problem is that InetRead can't read the news links. I hope someone can help me. My Code: #Include <IE.au3> #include <MsgBoxConstants.au3> #include <String.au3> #include <Array.au3> #include <File.au3> #include <Date.au3> $url = "https://www.ecb.europa.eu/press/pr/html/index.en.html" Global $InetRead = InetRead($url, 1) Global $html = BinaryToString($InetRead) $linksarr = _StringBetween($html, 'href="/press/pr/date/', '"') _ArrayDisplay($linksarr) Thats what i get in the <dl>: <dl id="lazyload-container" class="ecb-basicList wpSeries ecb-lazyload pub-list-filter" data-filter='true' data-snippets='../date/2020/html/index_include.en.html,../date/2019/html/index_include.en.html,../date/2018/html/index_include.en.html,../date/2017/html/index_include.en.html,../date/2016/html/index_include.en.html,../date/2015/html/index_include.en.html,../date/2014/html/index_include.en.html,../date/2013/html/index_include.en.html,../date/2012/html/index_include.en.html,../date/2011/html/index_include.en.html,../date/2010/html/index_include.en.html,../date/2009/html/index_include.en.html,../date/2008/html/index_include.en.html,../date/2007/html/index_include.en.html,../date/2006/html/index_include.en.html,../date/2005/html/index_include.en.html,../date/2004/html/index_include.en.html,../date/2003/html/index_include.en.html,../date/2002/html/index_include.en.html,../date/2001/html/index_include.en.html,../date/2000/html/index_include.en.html,../date/1999/html/index_include.en.html,../date/1998/html/index_include.en.html,../date/1997/html/index_include.en.html'></dl> Normally the newest links should be inside. Link to comment Share on other sites More sharing options...
mikell Posted July 19, 2020 Share Posted July 19, 2020 InetRead reads correctly the source code of the page The mentioned links are relative, for example this link : ../date/2020/html/index_include.en.html is in fact : https://www.ecb.europa.eu/press/pr/date/2020/html/index_include.en.html inetauto 1 Link to comment Share on other sites More sharing options...
inetauto Posted July 19, 2020 Author Share Posted July 19, 2020 yeah but my problem is i can't get this part of the source code. Its not there when i try to declare the link. <a href="/press/pr/date/2020/html/ecb.pr200717_2~7d1fb908e4.en.html">ECB and National Bank of Serbia set up repo line to provide euro liquidity </a> Link to comment Share on other sites More sharing options...
inetauto Posted July 19, 2020 Author Share Posted July 19, 2020 Ahh okay i see thank you now it works for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now