I recorded an imacros script to creat a new facebook fanpage, but when i replay script, it aways showed: RuntimeError: element was not found. (Google search said: facebook random tags ID, buy Xpath also faild)
does anyone can help?
I have macros for creating and using fan pages automatically.
I have to update them every month or so because facebook changes the tags a lot!
1)Some tags change from refresh to refresh but its always one of 2-3 options so once you get them down its not that bad.
2) use experimental recording , it does a better job for some facebook elements
3) if you cant seem to work out the id tags use X/Y position for the problematic button.
4) The real problem with facebook comes later after you got the automation working. They stop loading random buttons and pages that they see you using with the automation and it is hard to overcome.
Related
I'm looking for a way to recreate the functionality of a refreshing page extension on a browser (e.g. Auto refresh plus in Chrome) by using javascript. The problem is that I have no ideia how to achieve that.
I must find a way to refresh the page every second or so, click on a link that appears on the page from time to time, add a sound effect for when it appears and send an e-mail notification every time it appears.
I'm trying to use a simple javascript snippet to run in the console in order to refresh the page:
win1 = window.open("https://www.myUrl.com/");
timer1 = setInterval(function(){win1.location.href="https://www.myUrl.com/"}, 1500);
However, this implies running code from tab A on tab B which I found very challenging.
The code can't run on tab A alone because at the time it refreshes the page, it gets erased from the console.
I know it would have been so much easier to use an extension, but the platform I work for does not allowed any extensions.
I have basic HTML and javascript knowledge, but I find this would be a good project to learn more.
Also, if the solution involves other languages, I just need a direction to know where to look for and start this project.
I'm trying to scrap the results from this page https://www.zapimoveis.com.br/aluguel/apartamentos/sp+sao-paulo+zona-sul+itaim-bibi/ using Selenium, but I got stuck on obtaining the url of each result. It seems safe to say that each card's url is not stored on a <a> element and apparently not stored at all at any point of the inner html of each div.
The only way to obtain the address is by clicking on the div, which opens a new tab.
Currently, I'm using selenium to click on each one, copying the address and then closing the tab, but not only this is a much more complex and time consuming process but also could trigger some captcha by doing that many requests to the website.
Is there a way to obtain the urls of all offers on this page without this clicking process? I tried using the inspect tool on chrome but couldn't figure out what is the js or wtv resposible for this behavior.
Thanks!
I checked out the site and it looks like each card-container has a data-id that can be used to access the listing.
The link for this card:
<div data-id="2593637292" class="card-container js-listing-card">{THE HTML FOR THAT CARD}</div>
would be https://www.zapimoveis.com.br/imovel/2593637292.
This question is out of curiosity. These days one can find numerous websites that use "Load more on scroll down" feature . For: Facebook, twitter, instagram etc.
Is there a way to automate this on any website?
I bumped into this
but I have no clue how to make this work.
I know some javascript and jquery.
Well as far as I know there's no automated way to make this work on every website available out there. E.g if you're developing a Wordpress blog and want to load more posts when the user reaches the bottom of the page you have to make an ajax-call to a php function to load more. And you have to define that function.
If you're on a Drupal site you have to follow the same step, however the Wordpress API and Drupal API are not the same so you have to customize the php function to load more.
The only "automated" way I can think of is to load all posts(Wordpres) or nodes(Drupal) and hide a certain number of them whith css. And when the user reaches the bottom, unhide XXX number of posts and repeat this step until every post is revealed.
I am using a Gchat voice and video chat script. link to my website
The problem is that someone login in my chatroom and he use this flash link to crash users browser.
when he login all of us get disconnected and we have a blank black page at that time.
He must be using src="http://best-hosting.cu.cc/c/banner3-www-facebook-skype-net-com.swf" or iframe of that link somewhere when he is logging in.
Please help me. How can I disable that flash thing not to load in all users browsers
I get his links detect using ads block plus extension in firefox when he login with that flash link thing. when i block his link in ads block plus then i do not get disconnect but the other users who dont have ads block plus still get disconnect from website and have a blank black page.
Please suggest me something that will solve my problem.
You could try the accepted answer here: Find text and remove it jquery
Use it to find a string within the text and remove the entire thing.
I'd personally do: $('.className').contains('.swf').remove();
Where className would be the class for links, or you could just do it for the <a> tag in general
EDIT: That being said, I have no idea what Gchat is, and whether or not this would be possible with it. If it is something hosted on your site it should work, but if it is embedded and hosted elsewhere, I'm not quite sure, worth a try though.
I'm building my first chrome extension using JavaScript. It is required in it to identify the videos in the page a automatically. And then send the info. to web service. I'm not sure if saving the URL and the video tag will be a good idea to remember the video.What do you think? is it a good idea? and if it is OK, how i can identify the video tags which inside the page?
Console in google chrome will tell you if your loading things other than just the site.
Right click inspect page, then click console.