Jump to content

SupGuvna

Members
  • Posts

    6
  • Joined

  • Last visited

SupGuvna's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Unfortunately the code you wrote there always results in error. Played around with it abit and it is scanning, but nothing is being wrote to file. Thanks <3 Edit: Messed around with the code and cleaned it up abit <3 Works just fine now. Thanks for the lovely education you guys!
  2. This site could use an edit button..But anyways, I have gotten a step closer! For $i = $Start To $Finish $url = "http://www.Domain.com/pageid/" & $i $source = _INetGetSource($url) $Str = StringInStr($source, "HerroThere",0) $Main = ($i & " " & $Str) FileWrite("test.txt",$Main & @CRLF) Now the output is down to this! Anybody got a way to push to the final step? <3 Almost there!
  3. Here is the closest I can get... 8336 8337 HerroThere (Followed by the rest of the page source for some reason) 8338 Though thats by going with this route. FileWrite("test.txt", $i & @CRLF) FileWrite("test.txt", $result & @CRLF) Is it possible at all to write NOTHING to the text file with the exception of page ID`s via $i that have the string HerroThere in them? Sorry for making things complicated x-x
  4. This works, But I was hoping it would write the var used instead of the results themselfs. Such as...it finds the line HerroThere in page 5784 Instead of writing the results, I want to make it write the page it was found in <3 Understand? Though, This is definitely a big step in the right direction.
  5. experimented around with it quite abit...all I can seem to do is get it to dump the url to textfile along with "10" Any ideas?... $source = _INetGetSource($url) StringInStr($source, "HerroThere", 0, 1,0,0) Local $result = StringInStr("I am a String", "RING") FileWrite("test.txt", $result & @CRLF) Not sure if this is being properly used or what I am doing wrong. Not exactly an expert when it comes to this ><
  6. I have wrote tools for pulling pages off of a range and dumping their source to a textfile. Example: For $i = $Start To $Finish $url = "http://DOMAIN.com/Pageid=" & $i $source = _INetGetSource($url) FileWrite("FILE.txt", $i & @CRLF) FileWrite("FILE.txt", $source & @CRLF) However, Now I want to make this into a tool that instead of just pulling the page source entirely, I want it to save ONLY the URL if a certain line of text is in the source of the page. How it is setup now, It just dumps the entire source of each page into a single textfile so I can just use notepads find function to find the pieces of text I want. I suppose it could be considered a type of crawler. But instead of just one thing being searched for...I would like it to search for say. Several phrases or lines. And only if that line of text exists in the sourcefile, I would like it to write the page ID number ($i) To the list. So...Can anybody help me with building something like this?.. It would help me out a lot. Sorry for the complicated explanation. but, I consider this complicated ><
×
×
  • Create New...