orichec Posted January 25, 2016 Share Posted January 25, 2016 Hello everyone, I copied few information from website source codes but it has some kind of URLS but don't want those type of URLS in my final saved text file so what filter should I use to prevent copying URLS information in my final text file. I need just text not URLS in my final text file. Here is my coding #include <IE.au3> #include <String.au3> #include <Array.au3> ;getting the page source code and storing it into text file for easy reading it and debugging $file = fileopen(@scriptdir & "\source10.txt", 10) $IE = _IECreate("http://www.softpedia.com/get/Tweak/System-Tweak/Edge-Blocker.shtml", 0, 0) $source = _IEDocReadHTML($IE) FileWrite($file, $source) ;extracting source code between <div class="grid_28 mgtop_30"> and <div class="_tabpage tabpage hidden legible specifications" id="specifications"> $target_source = _StringBetween($source, '<div class="data">', '</div>') FileWrite ( "1.txt", $target_source[0]) _IEQuit($IE) fileclose($file) Link to comment Share on other sites More sharing options...
alienclone Posted January 25, 2016 Share Posted January 25, 2016 maybe try _IEBodyReadText instead of _IEDocReadHTML If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 25, 2016 Moderators Share Posted January 25, 2016 orichec, It seems you cannot accept that we have limits on acceptable topics here. Your first and second attempts were locked - and guess what? So is your third! And moreover our patience is exhausted - you will be unable to post for a month. When and if you return, you had best respect our rules or you will be removed from the community. Furthermore, sending me a PM claiming that the use of the torrent website was "just an example" does not wash - any idea how many times we have heard that excuse? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts