Extracting a number from an ID

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
elkhalil
Posts: 4
Joined: Sun Oct 20, 2019 2:44 pm

Extracting a number from an ID

Post by elkhalil » Sun Oct 20, 2019 5:16 pm

Hello guys, I hope my topic finds you well.

I want to extract a specific number from an ID value,

here is the line:

Code: Select all

Code: Select all

TAG POS=1 TYPE=INPUT ATTR=CLASS:markAll<SP>check EXTRACT=HTM
and here is the result I get after I run the previous line:

Code: Select all

<input style="outline: 1px solid blue;" id="raidListMarkAll1518" class="markAll check" onclick="Game.RaidList.markAllSlotsOfAListForRaid(1518, this.checked); "type="checkbox">
For example, I want only to extract this number (1518) from this (id="raidListMarkAll1518").

I don't know how to make the EVAL command to achieve the result I want.

I hope to get help from you guys, I really appreciate it

Thank you so much.
chivracq
Posts: 9318
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Extracting a number from an ID

Post by chivracq » Sun Oct 20, 2019 5:29 pm

elkhalil wrote:
Sun Oct 20, 2019 5:16 pm
Hello guys, I hope my topic finds you well.

I want to extract a specific number from an ID value,

here is the line:

Code: Select all

Code: Select all

TAG POS=1 TYPE=INPUT ATTR=CLASS:markAll<SP>check EXTRACT=HTM
and here is the result I get after I run the previous line:

Code: Select all

<input style="outline: 1px solid blue;" id="raidListMarkAll1518" class="markAll check" onclick="Game.RaidList.markAllSlotsOfAListForRaid(1518, this.checked); "type="checkbox">
For example, I want only to extract this number (1518) from this (id="raidListMarkAll1518").

I don't know how to make the EVAL command to achieve the result I want.

I hope to get help from you guys, I really appreciate it

Thank you so much.

Alright, good, this Thread is now opened in the correct Sub-Forum :D , as I mentioned in my Disapproval for your first/original Post, that the 'iMacros Consultants' Sub-Forum is meant for Paid Jobs...

But hum, you missed/ignored this part:
And consider reading the Forum Rules for missing (Tech) Info in your Post...
=> CIM...! :mrgreen: (Read my Sig..., and the Forum Rules... (again...! :roll: ))

Then well, too bad, good luck with other (Advanced) Users, as you didn't "comply" with that Request, and I usually don't help for Games also... :|
But I've posted the/a Solution many times already, if you search the Forum a bit... :idea:

(And you'll still need to mention your FCI, ... and to finish this Thread "useful" for other Users by sharing your Solution once you'll have it, (and to not "mutilate"/delete your OP/Thread like many/most Users who want a Script for playing a Game usually do, to prevent "the Competition" from using "their" Script... :shock: ), for me to (maybe) help you for "a next time", you never know... Just saying... :idea: )
Last edited by chivracq on Sun Oct 20, 2019 6:09 pm, edited 1 time in total.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
elkhalil
Posts: 4
Joined: Sun Oct 20, 2019 2:44 pm

Re: Extracting a number from an ID

Post by elkhalil » Sun Oct 20, 2019 6:52 pm

Thank you so much for the clarification,

Here is my config = Windows 10 64x + Google Chrome + iMacros from the extensions store

Would you please give my some keywords so I can use it to search in the forum, or a direct link to a topic?

Thank you
chivracq
Posts: 9318
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Extracting a number from an ID

Post by chivracq » Tue Oct 22, 2019 1:02 am

elkhalil wrote:
Sun Oct 20, 2019 6:52 pm
Thank you so much for the clarification,

Here is my config = Windows 10 64x + Google Chrome + iMacros from the extensions store

Would you please give my some keywords so I can use it to search in the forum, or a direct link to a topic?

Thank you

FCIM...! :mrgreen:

+ Parallel Thread on SOF:
- Extract value from an ID tag in a extracted Html data
(No Replies, and FCI not mentioned (of course...! :roll: )...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply