soulpower 3 Posted January 23, 2011 Report Share Posted January 23, 2011 I have some keywords in a list that i'm scraping an article for...i'm wondering if it's possible to scrape the keywords whether upper or lower case? Keywords: bobtomjohn Article: Bob is cool, Tom is rad..John is a dork But when I scrape, none of them return back since the keywords are lower case. Any way to do this regardless of case? Quote Link to post Share on other sites
UBotBuddy 331 Posted January 23, 2011 Report Share Posted January 23, 2011 Unfortunately, you need to search for what you are expecting. I have heard you can do it with Javascript but I have not seen the code for that. Quote Link to post Share on other sites
JohnB 255 Posted January 23, 2011 Report Share Posted January 23, 2011 This can be done using regex. Quote Link to post Share on other sites
soulpower 3 Posted January 24, 2011 Author Report Share Posted January 24, 2011 This can be done using regex. Hey John,You wouldn't happen to know what kind of string would accomplish this would you? I'm really green to regex. Right now the keywords in my text block are being assigned to a variable and then i'm scraping for that variable. Thanx! Quote Link to post Share on other sites
JohnB 255 Posted January 24, 2011 Report Share Posted January 24, 2011 It depends which UBot license you have. Are you using Pro or Dev? If so, you may be able to accomplish it without using regex. John also, which keywords are in lower case? The ones in your list? or the ones in the article? Quote Link to post Share on other sites
soulpower 3 Posted January 24, 2011 Author Report Share Posted January 24, 2011 It depends which UBot license you have. Are you using Pro or Dev? If so, you may be able to accomplish it without using regex. John also, which keywords are in lower case? The ones in your list? or the ones in the article? I have the regular version. The keywords in the article could be upper case or lower case depending on if they start a sentence or not. I'm hoping to just enter my keywords non case sensitive into the UI text box and have it scrape all keywords whether upper or lower case in the article. Quote Link to post Share on other sites
JohnB 255 Posted January 24, 2011 Report Share Posted January 24, 2011 ok, I'll have to put some thought into this... Quote Link to post Share on other sites
Guerrilla 19 Posted January 27, 2011 Report Share Posted January 27, 2011 Here you go. I tried to make it in way so you can modify it to fit your own bot. Add a keyword in like "ReD" in text box and it will return all variation regardless of case from the string in the "write browser" command.scrape non case sensitive.ubot Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.