Jump to content
UBot Underground

Scraping Same Element To Table, Multi-Threaded Question


Recommended Posts

I'm having an issue scraping the same element on each page to a table, each to it's respective cell, coming from different threads. It just seems to never happen. I've tried scraping it inside of a defined command with parameters. Even tried scraping to a local variable in a define command. Please advise. Thanks.

Link to post
Share on other sites

You can gather all the data into a list first, each column of data separated by a character that would not show up normally. Then loop through the list and split each list item based on that character and adding it into a table that way.

 

So each list item would look like this:

 

Bobby|23|Male|Texas Tech|Psychology

 

And later they can be split to go into their respective fields:

 

Name - Age - Gender - School - Major

Link to post
Share on other sites

Thanks for your reply. I'm testing that now. My issue is where in the script do I actually scrape the element so that it's local. From there I can save to a list.

 

Local variables are local to the define they are in so you can create a define and then run that inside of a thread.

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...