seana88 2 Posted August 23, 2015 Report Share Posted August 23, 2015 Hey Ubotters, I'm trying to get a session ID that is given after login of a site called http://wapchat.co. I'm having trouble doing the regex to just get the session ID. It shows up multiple times in the page. Anyone mind helping? Thank you,Sean Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted August 23, 2015 Report Share Posted August 23, 2015 Hey Sean, Just scrape it into a ubot list and it will remove dups. or use xpath and use index of 0 CD Quote Link to post Share on other sites
seana88 2 Posted August 23, 2015 Author Report Share Posted August 23, 2015 Hey Sean, Just scrape it into a ubot list and it will remove dups. or use xpath and use index of 0 CDHey CD, I am having trouble with actually formulating a regex expression to get the session ID. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted August 23, 2015 Report Share Posted August 23, 2015 ok man, please provide a the HTML code that has the session ID in it so we can help you better. no need for entire HTML just the one element. if it is in the url then you can split by / and use list item as well. Quote Link to post Share on other sites
seana88 2 Posted August 23, 2015 Author Report Share Posted August 23, 2015 ok man, please provide a the HTML code that has the session ID in it so we can help you better. no need for entire HTML just the one element. if it is in the url then you can split by / and use list item as well.Hey CD , I actually found a way to get the session ID by using the xpath parser. I just parsed the href and then replaced everything before the session id. I prefer this method than actual regex. It seems A LOT easier. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted August 23, 2015 Report Share Posted August 23, 2015 yes! Xpath is the way 99 out of 100 way to think it through man 1 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.