An effort by anti-Trump forces to persuade Republican electors to abandon the president-elect came to practically nothing and the process unfolded largely according to its traditions. Trump's polarizing victory Nov. 8 and the fact Democrat Hillary Clinton had won the national popular vote had stirred an intense lobbying effort, but to no avail.

"We want unity, we want love," Kasich said as Ohio's electors voted to back Trump at a statehouse ceremony. Kasich refused to endorse or even vote for Trump in the election.

More than 200 demonstrators braved freezing temperatures at Pennsylvania's capitol, chanting, "No Trump, no KKK, no fascist USA!" and "No treason, no Trump!"

Protesters also gathered in Colorado, Georgia, South Carolina, Virginia, Texas, Nebraska and other states.

With several states still voting, Trump had 304 votes and Clinton had 169. It takes 270 Electoral College votes to win the presidency. Texas put Trump over the top, despite two Republican electors casting protest votes.

Befitting an election filled with acrimony, thousands of protesters converged on state capitols across the country Monday, urging Republican electors to abandon their party's winning candidate.

More than 200 demonstrators braved freezing temperatures at Pennsylvania's capitol, chanting, "No Trump, no KKK, no fascist USA!" and "No treason, no Trump!"

Despite the noise outside state Capitols, inside, the voting went pretty much as planned.

In Nashville, Tennessee, one audience member tried to read out some Scripture before the ballots were cast, but was told he could not speak.

"We certainly appreciate the Scripture," State Election Coordinator Mark Goins said from the podium. "The answer is no."

With all Republican states reporting, Trump only lost the two electors in Texas. Clinton lost four electors in Washington state — three voted for former Secretary of State Colin Powell and one voted for Native American tribal leader Faith Spotted Eagle.

Several Democratic electors in other states tried to vote for protest candidates but they either changed their votes to Clinton or were replaced.

The Electoral College has 538 members, with the number allocated to each state based on how many representatives it has in the House plus one for each senator. The District of Columbia gets three, despite the fact that the home to Congress has no vote in Congress.

Republican electors were deluged with emails, phone calls and letters urging them not to support Trump. Many of the emails are part of coordinated campaigns.

In Atlanta, Gov. Nathan Deal empathized with GOP electors.

"I, too, regret that you have been the subject of harassment by those who perhaps are not as dedicated to the proposition of what this body is supposed to do as they are agitated by the fact that the people didn't do what they wanted them to do," Deal told the state's 16 electors, who all voted for Trump.

In Baton Rouge, Louisiana, elector Charlie Buckels reached out to Trump's opponents after the New York businessman got all of the state's eight votes.

"For those of you who wished it had gone another way, I thank you for being here," said Buckels, the state GOP finance chairman. "I thank you for your passion for our country."

There is no constitutional provision or federal law that requires electors to vote for the candidate who won their state — though some states require their electors to vote for the winning candidate.

Those laws, however, are rarely tested. More than 99 percent of electors through U.S. history have voted for the candidate who won their state. Of those who refused, none has ever been prosecuted, according to the National Archives.

Some Democrats have argued that the Electoral College is undemocratic because it gives more weight to less populated states. That is how Clinton, who got more than 2.8 million more votes nationwide, lost the election to Trump.

Some have also tried to dissuade Trump voters by arguing that he is unsuited to the job. Others cite the CIA's assessment that Russia engaged in computer hacking to sway the election in favor of the Republican.

"When the founders of our country created (the Electoral College) 200-plus years ago, they didn't have confidence in the average white man who had property, because that's who got to vote," said Shawn Terris, a Democratic elector from Ventura, California. "It just seems so undemocratic to me that people other than the voters get to choose who leads the country."

A joint session of Congress is scheduled for Jan. 6 to certify the results of the Electoral College vote, with Vice President Joe Biden presiding as president of the Senate. Once the result is certified, the winner — almost certainly Trump — will be sworn in on Jan. 20.

"When the founders of our country created (the Electoral College) 200-plus years ago, they didn't have confidence in the average white man who had property, because that's who got to vote," said Shawn Terris, a Democratic elector from Ventura, California. "It just seems so undemocratic to me that people other than the voters get to choose who leads the country."

There is no constitutional provision or federal law that requires electors to vote for the candidate who won their state. Some states require their electors to vote for the winning candidate, either by law or through signed pledges. But no elector has ever been prosecuted for failing to vote as pledged, according to the National Archives.

Those laws are rarely tested. More than 99 percent of electors through U.S. history have voted for the candidate who won their state.

Electors are selected by state parties, and so are often insiders who can be trusted to vote for the party's candidate. Many Republican electors said they feel duty-bound to honor their pledge to vote for the candidate who won their state, regardless of how they feel about Trump.

Still, some anti-Trump activists have been getting creative in trying to persuade electors to dump Trump.

In addition to thousands of emails, Republican elector Charlie Buckels of Louisiana said he received a FedEx package with a 50-page document that the sender said "had absolute proof that the Russians hacked the elections."

"From the tenor of these emails, you would think these people are curled up in a corner in a fetal position with a thumb in their mouth," Buckels said.