Jump to content
UBot Underground

Match file contents to Element on page argument?


Recommended Posts

Hey everyone,

I'm trying to match an element on a page to a line inside a file.

 

So for example...

 

I have file.txt which contains the lines:

 

dog

cat

bear

lion

 

and I want to make an argument that if I search the webpage and it finds the word "bear" on the site it will match it to file.txt.

 

 

What i have done so far is set a variable such as

 

set-->#file-->$read file-->file.txt

 

and want to make an "if" statement like

 

if-->search page (highlight word) = #file

 

 

Anyone have any pointers on this? Thanx! :D

Link to post
Share on other sites

If it is literally only one word on the line, you could do this:

 

set-> list postion -> file.txt -> 0

 

if->search page (bear) then

set #word to match from scraped site TO scraped highlighted word

 

loop

list total -> file.txt

---set

---#word to match from file.txt

---next list item -> file.txt

---if

---evaluate

---#word to match from scraped site = #word to match from file.txt

---do something

end loop

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...