'We need hundreds': Fire victims' families urged to give DNA
Authorities are using a rapid DNA test that produces results in just two hours to help identify the scores of people killed in the Northern California...
1h ago
2h ago
Mars revisited: NASA spacecraft days away from risky landing
Mars is about to get its first U.S. visitor in years: a 3-legged, 1-armed geologist
2h ago
3h ago
As Facebook faces fire, heat turns up on No. 2 Sandberg
For the past decade, Sheryl Sandberg has been the poised, reliable second-in-command to Facebook CEO Mark Zuckerberg
3h ago
Nov 20
Play
ABCNews.com
0:53
Let the bargain hunting begin
Nov 20
Amazon HQ expansion means tough fight for talent
Amazon moving into the neighborhood means a fierce competition for tech talent across industries
Nov 20
Nov 19
AP Photos: Northeastern India falcon hunters turn protectors
AP Photos: Northeastern India falcon hunters turn protectors
Nov 19
Nov 19
Evacuations urged near Guatemala's erupting Volcano of Fire
Authorities have asked 10 communities in Guatemala to evacuate.
Nov 19
Nov 19
The scoop on how your cat's sandpapery tongue deep cleans
The science behind cat grooming: High-tech scans give a peek at how their sandpapery tongues clean through all that fur
Nov 19
Nov 19
Russian, US officials say space cooperation remains strong
Russian and U.S. space officials hail joint work, say cooperation remains strong despite political tensions between countries
Nov 19
Nov 19
Limiting screen time for your kid? It's harder than it looks
Screenhead Nation: The battle over screen time has become a rite of passage for America's youth, but how much is too much?
Nov 19
Nov 19
Space station gets 2 cargo deliveries in record 15 hours
International Space Station gets two cargo deliveries in 15 hours, a new record
Nov 19
Nov 19
UNESCO launches Holocaust education website
The U.N. culture and education agency is teaming up with the World Jewish Congress to launch a website to counter Holocaust denial and anti-Semitism
Nov 19
Nov 19
Limiting screen time for your kid? It's harder than it looks
Screenhead Nation: The battle over screen time has become a rite of passage for America's youth, but how much is too much?
Nov 19
Nov 19
Big tech firms pledge training for workers in Southeast Asia
Microsoft, Google and other major technology companies have promised to help provide training in digital skills for around 20 million people in...
Nov 19
Nov 19
Could regulation be coming to Silicon Valley?
Apple CEO Tim Cook said it's inevitable Congress eventually will pass regulation because the free market is not protecting user privacy.
Nov 19
0:54
Nov 19
Authorities call for evacuations around Volcano of Fire in Guatemala after a warning of increasing eruption
Authorities call for evacuations around Volcano of Fire in Guatemala after a warning of increasing eruption
Nov 19
Nov 18
Dig resurrects a feud over which town is a state's oldest
An archaeological dig is rekindling a friendly feud between two towns over which was the first in Connecticut
Nov 18
Nov 18
Ousted Sri Lankan PM's party asks Facebook to protect users
The ousted Sri Lankan prime minister's party is urging Facebook to safeguard the identity of the party's supporters on the social media platform
Nov 18
Nov 18
Explosion at Idaho hazardous waste site kills 1, injures 3
Officials say an employee at a hazardous waste site in southwestern Idaho was killed after an explosion Saturday that also injured three workers and...
Nov 18
Nov 18
The Latest: Employee at waste site killed in explosion
Officials say an employee at a hazardous waste site in southwestern Idaho was killed after an explosion Saturday that also injured three workers and...
Nov 18
Nov 17
Swimmer in Australia dies after being stung by stingray
A swimmer in Australia has died of a heart attack after he was stung by a stingray
Nov 17
Nov 17
Democrats gear up for more digital spending in 2020
One of the largest outside Democratic groups says ramped-up spending on digital advertising played a key role in battleground races where seats were...
Nov 17
Nov 17
Climate change protesters block off 5 London bridges
Hundreds of protesters have turned out in central London and blocked off the capital's main bridges to demand the government take climate change...
Nov 17
Nov 17
Space station supplies launched, 2nd shipment in 2 days
A rocket has blasted off from Virginia with space station supplies, the second shipment in as many days
Nov 17
Nov 17
Britain says Russian contractors have no say in visa process
Britain's Home Office says that the company contracted to collect visa applications in Russia has "absolutely no involvement with the decision-making...
Nov 17
Nov 16
Fight over dinosaur fossils comes down to what's a mineral
A fight over who owns the fossils of two dinosaurs that appear to have died while locked in battle hinges on the legal definition of "mineral"
Nov 16
Nov 16
Cargo ship launch clears crewed mission to space station
A Russian Soyuz rocket has put a cargo ship en route to the International Space Station, a successful launch that clears the way for the next crew to...
Nov 16
Nov 16
Take a weight off: Tears, joy as kilo gets historic update
In a historic vote, nations on Friday unanimously approved a ground-breaking overhaul to the international system of measurements that underpins...
Nov 16
Nov 16
Trump signs bill to elevate cybersecurity mission at DHS
President Donald Trump is signing legislation that elevates cybersecurity work within the Department of Homeland Security
Nov 16
Nov 16
NASA accepts delivery of European powerhouse for moonship
NASA has accepted delivery of a key European part needed to power the world's next-generation moonship
Nov 16
Nov 16
Airbnb says revenue for 3Q was best ever, topping $1 billion
Airbnb says it had its best quarter ever, even as cities across the U.S. have started clamping down on the short-term rental market
Nov 16
Nov 16
Fashion show blends Cuban private enterprise, US sponsorship
Models strutting in paint-stained shirts and leather construction boots have shed light on an unusual blend of Cuban private enterprise and American...
Nov 16
Nov 16
The Latest: Landmark change to kilogram approved
The so-called "Grand K" kilogram, a cylinder of polished platinum-iridium alloy that has been the world's sole true kilo since 1889, is to be retired
Nov 16
Nov 16
Facebook executive denies blocking investigations into election meddling
Sheryl Sandberg released a statement saying that the company cut ties with the PR firm reportedly hired to discredit its critics.
Nov 16
0:50
Nov 15
Smoke spreading from California fires sparks health concerns
Smoke from major wildfires is spreading into California cities and raising concerns about the impact on people's health
Nov 15
Nov 15
Study finds healthy group of polar bears in sea near Alaska
A study of polar bears in the Chukchi Sea between Alaska and Russia finds that the population is healthy for now despite a loss of sea ice due to...
Nov 15
Nov 15
Facebook says it's better at detecting rule violations
Facebook says it is making progress on deleting hate speech, graphic violence, fake accounts and rooting out other violations of its rules, including...
Nov 15
Nov 15
The Latest: Facebook to create independent appeals body
Facebook says it's setting up an independent body for people to appeal decisions to remove _ or leave up _ posts that may violate its rules.
Nov 15
Nov 15
Electronic driving systems don't always work, tests show
Testing by AAA shows that electronic driver assist systems on the road today may not stay in their lanes or spot stationary objects in time to avoid a...
Nov 15
Nov 15
City votes to impose restrictive rules on short-term rentals
The Washington city council has voted to impose tight limits on Airbnb and other short-term rental companies
Nov 15
Nov 15
Farm animals may soon get new features through gene editing
'Castration-free' pigs and hornless dairy cows are the farm animals being brought to life by a gene-editing company
Nov 15
Nov 15
Transit riders, drivers brace for influx of Amazon employees
New York and Washington's clogged streets and creaky subway systems are about to feel more pain as 50,000 more people descend on the two metro areas...
Nov 15
Nov 15
Apple investigating complaint iPhone X overheated and caught fire
The owner of an iPhone X said his smartphone caught fire while he was upgrading the operating system.
Nov 15
0:51
Nov 15
Transit riders, drivers brace for influx of Amazon employees
New York and Washington's clogged streets and creaky subway systems are about to feel more pain as 50,000 more people descend on the two metro areas...
Nov 15
Nov 14
Rare conservation win: Mountain gorilla population ticks up
After facing near-extinction, the total number of mountain gorillas is slowly rebounding
Nov 14
Nov 14
Feds subpoena Snap over shareholder lawsuit
Snap Inc. has received federal subpoenas related to a class-action lawsuit stemming from its 2017 initial public offering
Nov 14
Nov 14
As wildfires grow deadlier, officials search for solutions
Creating fire buffers between housing and dry brush and burying spark-prone power lines underground would give people a better chance of surviving...
Nov 14
Nov 14
Buffett's firm invests in JP Morgan Chase, drops Walmart
Investor Warren Buffett's company picked up nearly 36 million shares of JP Morgan Chase stock in the third quarter and eliminated its stake in Walmart...
Nov 14
Nov 14
Super-Earth discovered orbiting red dwarf known as Barnard's Star
The discovery was made possible through calculations by astrophysicists.
Nov 14
Nov 14
Skulls reveal Neanderthals, humans had similarly harsh lives
Skull fossils suggest Neanderthal life was no more risky than what our own species faced in ancient times
Nov 14
Play
Apple
1:07
Apple Watch introduced with FDA-approved heart rate features, fall detection
/** CONFIGURATION END **/ (function() function loadChartbeat() var e = document.createElement('script'); e.setAttribute('language', 'javascript'); e.setAttribute('type', 'text/javascript'); e.setAttribute('src', '//static.chartbeat.com/js/chartbeat.js'); document.body.appendChild(e);
(function () var nielsenImg = new Image(1, 1); nielsenImg.onerror = nielsenImg.onload = function () nielsenImg.onerror = nielsenImg.onload = null; ; nielsenImg.src = ["//secure-us.imrworldwide.com/cgi-bin/m?ci=us-704476h&cg=0&cc=1&si=", escape(window.location.href), "&rp=", escape(document.referrer), "&ts=compact&rnd=", (new Date()).getTime()].join(''); )();
var google_conversion_id = 1005826543; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "1GPKCOHYjwMQ7-PO3wM"; var google_conversion_value = 0;
TinyCast.easyInit(pid:11001, "dcs": "PROD", "path": "https://s.abcnews.com/assets", function onMessage(data) if (data.data) abcn_ui.Helpers.live_alerts_render.updateLiveAlerts(data.data);
)
var s_account = "wdgnewabcnews,wdgasec,wdgnewabcnweb";
var arecookiesEnabled = navigator.cookieEnabled; var tryLocalStorage = function() try localStorage.setItem("testLS", "test"); localStorage.removeItem("testLS"); return true; catch(e) return false;
var thirtyMinutesLater = new Date(); thirtyMinutesLater.setMinutes(thirtyMinutesLater.getMinutes() + 30);
var setTrackID = function() // set setTime for protection setTimeout(function() if (s_omni.prop14) var prevPageTrack = s_omni.prop14; if (tryLocalStorage) memcachejs.set("abcnd-prev-page", prevPageTrack, 1800); //localStorage.setItem('abcnd-prev-page', prevPageTrack); else if (arecookiesEnabled) createCookie('abcnd-prev-page',prevPageTrack,1);
else // clear if (tryLocalStorage) memcachejs.remove("abcnd-prev-page"); else if (arecookiesEnabled) document.cookie = 'abcnd-prev-page=; expires='+thirtyMinutesLater.toGMTString()+';';
, 1000);
$(document).ready(function() $(document).on("click", 'a[name^=lpos]', function(e) var n = $(this).attr("name"); if (tryLocalStorage) memcachejs.set("abcnd-link-track", n, 1800); else if (arecookiesEnabled) createCookie('abcnd-link-track',n,1);
);
//apply link tracking to social buttons with specific attribute $(document).on("click", '.btn-social, .vjs-control.icon-facebook, .page-action.email', function(e)
if (tryLocalStorage) linkTrack = memcachejs.get("abcnd-link-track"); else if (arecookiesEnabled) linkTrack = readCookie('abcnd-link-track');
if (linkTrack) var lpos = linkTrack.split("lpos="); if (lpos.length == 2)
if(typeof s_omni != "undefined") // lpos[1] is the name= property in the anchor tag. s_omni.prop9 = lpos[1];
// do this again for prop12, even if click tracking doesn't occur (back button, forward button) if (tryLocalStorage) memcachejs.remove("abcnd-link-track");
// if previous page is set, add to to prop12 if (memcachejs.get('abcnd-prev-page')) s_omni.prop12 = memcachejs.get('abcnd-prev-page') memcachejs.remove("abcnd-prev-page");
else if (arecookiesEnabled) document.cookie = 'abcnd-link-track=; expires='+thirtyMinutesLater.toGMTString()+';';
// if previous page is set, add to to prop12 if (readCookie('abcnd-prev-page')) s_omni.prop12 = readCookie('abcnd-prev-page'); document.cookie = 'abcnd-prev-page=; expires='+thirtyMinutesLater.toGMTString()+';';
// set the current page in ls/cookie format setTrackID();
function slideLoadJS(u, c) var d = document, t = 'script', o = d.createElement(t), s = d.getElementsByTagName(t)[0]; o.src = '//' + u; if (c) o.addEventListener('load', function (e) c(null, e); , false); s.parentNode.insertBefore(o, s);
/*placeholder for ID to be used for offline match. for example, the lines below assume the ID for offline match is in s_omni.prop2. to activate the offline match id, remove the comments from the lines below and replace the s_omni.prop2 with the correct variable for the offline ID to be used.*/ //var bkid = (typeof s_omni.prop2 != 'undefined' ? s_omni.prop2 : ''); //bk_addPageCtx("id", bkid);
Node.js puppeteer - Use values from array in a loop to cycle through pages I'm using node.js and puppeteer to get some data. ... now I want to visit different pages based on inregular values from an array: My array looks like this: rows = [ RowDataPacket id: 1, value: 'L3', name: 'Steve' , RowDataPacket id: 2, value: 'GU', name: 'Peter' , RowDataPacket id: 3, value: 'M5', name: 'John' ] So the pages I want to visit are: await page.goto('url/search?action=getname&name=L3', waitUntil: 'load'); await page.goto('url/search?action=getname&name=GU', waitUntil: 'load'); await page.goto('url/search?action=getname&name=M5', waitUntil: 'load'); The array is actually 200 values long ... so I thought of doing a loop like this: await page.goto('url', waitUntil: 'load'); rows = [ RowDataPacket id: 1, value: 'L3', name: 'Steve' , RowDataPac...