Search the Community
Showing results for tags 'source code'.
-
Hello, I'm creating a program to help me analyze stocks. So a big part of my tool is web scraping. As of yesterday, the _INetGetSource command seemed to stop working for the page that tells me a stock's info which is on yahoo finance (I'll ref the link below). Here is the simplified version of the code. #include <Inet.au3> ConsoleWrite(_INetGetSource('https://finance.yahoo.com/quote/AAPL')) It's strange because before yesterday, it was pulling the code from those pages correctly. The _INetGetSource will work for most other yahoo pages, even the finance home page (finance.yahoo.com) but not the page that shows me a specific stock's info. Does anyone know why it stopped giving me the source code for those pages?
- 8 replies
-
- web scraping
- inetgetsource
-
(and 2 more)
Tagged with:
-
Hello AutoIt Scriptwriters! I want to read https based site that it's address is: Soft98 (https://soft98.ir/) I've tried with "_INetGetSource", "BinaryToString(InetRead)" and "InetRead" but none of them don't help me How can i get this site html source code without opening IE Windows?
- 11 replies
-
Save Same Pattern URLs from Source Code
jonson1986 posted a topic in AutoIt General Help and Support
Hello, I'm having a condition to copy all urls, having same ending and starting pattern, from source code of a specific website, that's why I write autoit codes but it only copy very first matched url and exist. Could you please help me how can I save all the available URLs matching with my pattern given in codes; Here are codes #RequireAdmin #include <Excel.au3> #include <IE.au3> #include <String.au3> #include <Array.au3> Local $oExcel = _Excel_Open() Local $oWorkbook1 = _Excel_BookOpen($oExcel, @ScriptDir & "\Urls.xlsx", True) ProcessClose ( "iexplore.exe") $file = fileopen(@scriptdir & "\source.txt", 10) $IE = _IECreate(_Excel_RangeRead ($oWorkbook1, Default, "A1"), 0, 0 ) $source = _IEDocReadHTML($IE) FileWrite($file, $source) $target_source2 = _StringBetween($source, 'http://example.com/posts/', '/"') If Not @error Then FileWrite (@scriptdir & "\links.txt", 'http://example.com/posts/' & $target_source2[0] & @crlf) EndIf Thanks -
Let me explain better.And Im 100% sure many have this problem and would be awesome if there would be a fix for this . So : In the SciTE script editor, if I load a big project, I want my source code to be clean, good ordered and concise. Because I have many functions, I often tight or expand them via that left little '+' or '-' cube button of the function. But after I close the SciTE window, ofc my sourcecode gets saved but not and the functions state ! Everytime I start the project , I start with all the functions expanded, despite if they were tightened or expanded . What could I do to SciTE to save my code state too ?