kill3rbko 12 Posted September 15, 2018 Report Share Posted September 15, 2018 (edited) Hello, Im facing a new problem with EB which consist in : 1. scraping a user id (sample : iptvuser21 id = 27235)2. click on a button to delete a user or use mnglines.php?action=user_delete&user_id={#userid}" This was working fine with ubot browser 21 but i can not scrape any information with EB Edited September 15, 2018 by Kill3rbko Quote Link to post Share on other sites
Sanjeev 46 Posted September 15, 2018 Report Share Posted September 15, 2018 can you post your ubot browser code - which was working previously? relevant html source data will also be help.. Quote Link to post Share on other sites
kill3rbko 12 Posted September 17, 2018 Author Report Share Posted September 17, 2018 Failing to post code in threadIs it normal? Quote Link to post Share on other sites
Sanjeev 46 Posted September 17, 2018 Report Share Posted September 17, 2018 no.. normally shouldn't be an issue at all... Quote Link to post Share on other sites
kill3rbko 12 Posted September 17, 2018 Author Report Share Posted September 17, 2018 ok trying againSorry impossible to add code, i added url with codes Source code from Exbrowser chrome https://pastebin.com/raw/dVHKp2SJ ubot code working https://pastebin.com/raw/vBbW4t1S Quote Link to post Share on other sites
Sanjeev 46 Posted September 17, 2018 Report Share Posted September 17, 2018 not sure if this will work - try - plugin command("ExBrowser.dll", "ExBrowser Click", "//li[@class=\"icn_users\"]/a[[@href=\"\"mnglines.php\"]") or plugin command("ExBrowser.dll", "ExBrowser Click", "//li[@class=\"icn_users\"]/a") or plugin command("ExBrowser.dll", "ExBrowser Click", "//li[@class=\"icn_users\"]/a[contains(text(),\'Manage Lines\')]") 1 Quote Link to post Share on other sites
Sanjeev 46 Posted September 17, 2018 Report Share Posted September 17, 2018 i can not scrape any information with EB what do you mean by that? You need to use xpath/css selectors to scrape or click on elements. If You are using native Ubot studio selectors I am not surehow well or to what extent they are supported in Exbrowser. Quote Link to post Share on other sites
kill3rbko 12 Posted September 18, 2018 Author Report Share Posted September 18, 2018 (edited) @Sanjeev Thanks for the help.The 2 last syntax are working for "manage lines" ie refreshing page. My problem is to click delete user in the grid and for that i need to scrape the id of the user and use it in deleting url.On EB chrome i can not get the source of the table containing these info.I noticed that when i navigate to this url i can get the info: https://cms.xtream-codes.com/zv75ble2/userpanel/mnglines.php?action=load_users in native ubot i can do a page scrape between 2 strings My question is how to do this page scrape with EB ? Thanks again for your time. Edited September 18, 2018 by kill3rbko Quote Link to post Share on other sites
Sanjeev 46 Posted September 18, 2018 Report Share Posted September 18, 2018 try the following ..? alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "//div[@class=\"table-icon stats\" and @title = \"{#username}\"]" ------------- alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element Attribute", "//div[@class=\"table-icon stats\" and @title = \"{#username}\"]", "attribute")) ----- note: if the 'username id 'you are trying to scrape - is in the format - recid ="2" , then you need to place only the attribute name here - for example if the user id attribute in the html code is 'recid' - then the following code might work - ---- alert($plugin function("ExBrowser.dll", "$ExBrowser Scrape Element Attribute", "//div[@class=\"table-icon stats\" and @title = \"{#username}\"]", "recid")) Quote Link to post Share on other sites
Sanjeev 46 Posted September 18, 2018 Report Share Posted September 18, 2018 On EB chrome i can not get the source of the table containing these info. Have you tried to get the source from chrome dev tools panel? right click on page -> select inspect -> html source code? 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.