-
Content Count
111 -
Joined
-
Last visited
-
Days Won
9
Posts posted by Varo
-
-
A slightly better way... I am trying to account for any number of followers.. 0,10,200,245 ,2.5k etc
set(#scraped string,"17 board • 2.1k followers","Global") set(#result,$replace($replace($find regular expression(#scraped string,"\\d+(\\.\\d+k)?(?= followers)"),".",","),"k",00),"Global")
I am also assuming that there is a single space after 'followers'.
Code can be made more robust by allowing zero or more spaces after followers.
set(#scraped string,"17 board •22.7k followers","Global") set(#result,$replace($replace($find regular expression(#scraped string,"\\d+(\\.\\d+k)?(?=\\s*followers)"),".",","),"k",00),"Global")
Thanks Sanjeev, i learn some lesson in your regex
-
If your ubot script is big and multi tab, you copy and extract .ubot file with 7zip
And then use sublime / notepad++ search function to find in all those extracted file
- 1
-
you can use regex function
find regular expression
or
replace regular expression
- 1
-
allow images("No")
-
Thanks. Where is the pagination in your code? I guess that I will have to modify something in there to simulate the scroll?
When you sent first GET request, then server will response with JSON data which contain parameter value, that you need to input as parameter url in the next request
-
You are welcome Yagami.
Http post is simple, just sent http get request to pinterest like this :
https://www.pinterest.ca/resource/UserFollowersResource/get/?source_url=/infographicnowcom/followers/&data={"options":{"hide_find_friends_rep":true,"username":"infographicnowcom"},"context":{},"module":{}}&module_path=App(module=[object Object])&_=1510802889379
https://www.pinterest.ca/resource/UserFollowersResource/get/?source_url=/infographicnowcom/followers/&data={"options":{"bookmarks":["Pz9Nakl5TXpvM09ERXdPVFV4TWpFNU5UWTBNREkxTXpvNU1qSXpNemN5TURNMk9EVTBOemMxT0RBM1gwVT18NDk5NGEyMDg4MzIyNjJlZGYwMjU0ZTUwZTI4OGYwZjk0MTg0M2YwMmY1YjdlZDg2MGU0MWIzNWZkM2QwYTAzOQ=="],"hide_find_friends_rep":true,"username":"infographicnowcom"},"context":{},"module":{}}&module_path=App(module=[object Object])&_=1510802889380
and read the response with JSON parser
-
you must put add list to list command inside page scroll loop
clear list(%searchlistfollowers) add list to list(%searchlist,$list from text("/infographicnowcom /romper.com"," "),"Delete","Global") loop($list total(%searchlist)) { navigate("https://www.pinterest.ca{$next list item(%searchlist)}","Wait") wait for browser event("Everything Loaded","") click(<innertext="Followers">,"Left Click","No") wait for browser event("Everything Loaded","") loop(20) { run javascript("window.scrollTo(0,document.body.scrollHeight); ") wait for browser event("Page Loaded","") wait(1) add list to list(%searchlistfollowers,$scrape attribute(<(tagname="a" AND href=r"^/.*?/$")>,"href"),"Delete","Global") } wait(3) }
-
do you have tested Version 5.9.37?
yes, it often crash when i open my big ubot file,
and there is 1px UI bug there.
-
It works when you search for profils "search -> People", but once you've clicked on a profile and clicked on "followers" to see the number of followers of that profile the code will not work.
The code work. Thats why i need you to post your code here,
So we can discuss where is the problem
-
Thank you for the answer, but what you are trying to do with your code won't work on Pinterest because expect the 10 first profils, the data is passed through the header and you can't find it in the html source code.
Have you try it ?
Those code work on pinterest, and the data is not passed through the header. The data is JSON format and in the html source code.
You can scrape using browser (html) or you can scrape using http get methods (json).
-
so you just don't update to the new 5.9.50 even you are in subscription?
i cancel my subscription since 5.9.37
-
show me your code.
-
i am using 5.9.33, and its the most stable for my need.
-
what do you want to do actually ?
make the page scroll or scrape the data ?
if you want to scroll the page then use 'run javascript' command.
window.scrollTo(0,document.body.scrollHeight)
and if you want to scrape the results/data then you can use regex or json path
-
Hi welcome to ubot community,
It seems you dont have access to write to Program Files folder.
Try install as Administrator.
-
Suggestions how to do that?
Use Fiddler then set AutoResponder tab
-
Temporary solution while waiting for the update,
modify the request or respond to load from another source / local file.
ps: new location
https://bootswatch.com/3/slate/bootstrap.min.css
-
Why would the UI load this way?
Happening over and over again cant load up the software properl
This is because
https://bootswatch.com/slate/bootstrap.min.css
used by the software not found. (404).
-
But I have a problem with ssub, I cannot load interfaces... is there a tutorial for this?
Cannot load interfaces?
what is the error message ?
-
You can try to copy manually the supporting files for ubot (C:\Users\USERNAME\AppData\Roaming\UBot Studio),
so the software does not need to download it again.
And i prefer to uninstall avast or another anti virus just to check the software run or not.
-
i am using Chrome 49 and default User Agent.
Everything is fine. Login succeed.
navigate("https://www.hatena.ne.jp/login?location=http%3A%2F%2Fh.hatena.ne.jp%2F","Wait") wait for browser event("Everything Loaded","") type text(<full name field>,"testerUBOT","Standard") wait(1) type text(<password field>,"ubotter1","Standard") wait(1) click($element offset(<login button>,0),"Left Click","No")
- 2
-
Bought the bot works well, I do have one strange error not sure if this is down to Ubot or SSUB but I get a small gap at the top of the UI below window frame, Its fine on the bottom edge
As my UI background is black it stands out and ruins the look of the bot is there anyway to fix this?
see below image http://i66.tinypic.com/13ym2k7.png
its because ubot. Try downgrade your ubot to 5.9.33 and those gap are gone
-
Try to switch to Chrome 49, and then restart ubot
-
Hi,
Do not activate the quotes button
http://i.imgur.com/Z0Aebly.png
Regex - Is There An Easier Way To Do This
in General Discussion
Posted
Try these code