Assigning links having a certain word to an array using iMacros - imacros

I use Windows 10, iMacro 12.6.
I am new to iMacros. Any help will be greatly appreciated!
I want to do something very simple but don't know how to do this.
I want to extract all the links having a certain word in a web page.
For example, I want to extract all the links having 'JCC' like:
1) http://JCC.domain-name.com/any_number_or_letter_or_whatever
2) http://JCC.domain-name.com/any_number_or_letter_or_whatever
3) http://JCC.domain-name.com/any_number_or_letter_or_whatever
... and so on
After extracting all the links above, I want to move to each web page one by one.
I mean, after visiting the first web page, I want do something, and then, I want to move to the 2nd web page, and then wait for 7 seconds, using 'WAIT SECONDS=7' command, to load the web page completely, and I want to do something... and so on.
I MUST NOT visit the web page I'd already paid a visit.
Q1) How can I assign each link having a certain word to an array? Can I assign the links to an array AT RANDOM or FROM TOP TO BOTTOM as shown in the HTML page?
Q2) How can I move to each web page using the array variable?
Sometimes, the web page doesn't show all the links having JCCs, so I have to hit the F5 key to reload the web page.
Sometimes I get nothing, sometimes 1 to 10 more new links.
Q3) I want to add all the new links from the reloaded the web page, and then, assign them to the previous array. How can I do this?
I don't know how many times I have to reload the web page but I guess 2 to 5 would be good within 5 minutes.
Q4) I need to use this macro later in order to get some new links having JCCs. I MUST NOT visit the web page I'd already visited. How can I make iMacros do this?
Thank you very much in advance. : )
BTW, I posted this at forum.imacros.net but it's not showing. : (

Related

Oracle APEX - Breadcrumb entry with multiple parents

I am working on this app where many pages (8+) are linking to the same page. Every page needs to show correct breadcrumb. Since many pages are linking to the same page, the target page (p5) has a number of breadcrumbs and each breadcrumb has a condition that an application item needs to have a specific value for the parent page.
For example pages 1,2,3,4,6,7 link to page 5. So page 5 has 6 separate breadcrumbs on it where the condition is when parent_page = x where x is the parent page number. So if the user comes from page 1, a correct breadcrumb is selected.
I feel that this is excessive and creates a mess. Also the number of pages that link to page 5 seems to grow. I could create new breadcrumbs for each parent page but I feel that this is wrong and want to find a better way. Can anyone point me in the right direction? how have you handled something like this in the past?
I haven't actually done it, but I remember wanting to at one time. I think you would need to "roll your own" breadcrumbs. You could use an APEX collection to keep track of the user's navigation by "pushing" and "popping" pages on to and off of the APEX collection. Then create a SQL-based list region to display these. You may need to create a bespoke list template to make this list look like breadcrumbs.
Had a similar requirement. Many paths to a single location and keeping the breadcrumbs in sync with the users path was a coding horror story. Finally we decided on not going down that road. The breadcrumb now shows the main path back to the main screen, which might not be the exact path the user followed. So, just a single breadcrumb per page. If you want to go back to the previous page then a "back" or "cancel" button could still do that, but not the breadcrumb.

extracting data from facebook using graph api

how can i extract name list && phone numbers of the users liking certain page ?
I have tried using software called facepager but i couldn't extract names .
note:I'm not the owner of the page
You'd most likely have to write code yourself to do something like this. However,
Almost no-one publicly shares their phone number.
Facebook try to prevent this kind of data collection.
Even when facebook list's "likers" of a page, it'll wait till you scroll down to load more. You'd have to play with your browsers debug tools and look into where it get's that data from
https://www.facebook.com/search/<group id here>/likers
In the end you'll probably not get much better than just searching for the page and clicking each person's profile because the site is designed to not let what you're trying to do happen...

Scraping a website with same url for different pages

So, I need to scrape this website which has a table like feature with limited number of results(say N) displayed per page. There is a next button to move to next N results but the url remains same. Wondering how to scrape it ?
URL - https://ehservices.publichealth.lacounty.gov/ezsearch
Also, there are javascript void sublinks in all of these entries in the results that I need to be able to click and scrape. How do I do this ?
Before I create a complicated solution, wanted to know if there is library to do this simply ?

Facebook Like Button Count for URLS that Already Have Likes/Shares/Comments

I am trying to implement a like button on a blog. The blog gets a decent amount of traffic and most posts get 10-30 likes, 5-10 shares and any number of comments on Facebook. I am implementing a like button for each post using the iFrame code copied straight from Facebook's Like Button page (http://developers.facebook.com/docs/reference/plugins/like/). When I do test URLS, like "test.com" a count will show up; however, when I use a URL from the site that I know has a combination of shares/likes/comments, no count shows. Additionally, when I run the link through the graph.facebook.com, it shows that there are shares (e.g., http://graph.facebook.com/http://test.com). Now, if I pressed the like button I do get a count of "1" to show up. My questions are thus:
1) Should I expect the count to show up for posts that have shares/likes/comments, but I'm just now implementing the button for it?
2) Is there anything special that needs to be done with the URL sent? URL encoding? Adding/not adding "http://"?
3) Is there a latency to the count? For instance are the counts cached and updated at different times?
Thanks for your help!
1) I don't think they will ever show up if they haven't so far.. (see answer 3)
2) No. An URL with or without http:// will be treated as the same URL. But I recommend using http://
3) If by latency you mean delay, then no. Likes/shares/comments count are updated almost instantly.

Caching data (image, rss) with django

That's my first question in here, I've been looking through old questions, but nothing matched with my problem. Here it is.
I'm creating some site with one main functionality. We want this site to display content of other sites, but in a specific way. User chooses let's say two pages from five and want to see their content. He clicks button 'Display' and goes to next page where he finds let's say view from web cam, and here comes problem.
I want to cache image that is hidden behind the url from which image was downloaded, so after refresh image won't be downloaded again, but browser will get it from cache.
I've been looking through documentation of Django, but nothing seemed to be useful.
I know that I should:
1) create table which stores cache
2) add to settings.py some CACHE_BACKEND = ...
3) use #cache_page(300) before declaration of function which returns content which should be cached,
but... it doesn't seem to work.
I will be greateful if someone tells how to solve that problem, maybe with some sort of code showing the mechanism.
Cheers,
Chris.
I think that right way to do this will be to store image somewhere on your server and delete it later with cron or something similar.
Django cache framework wasn't created for the purpose you are trying to use it.