By Eyanir Chinea and Andrew Cawthorne
CARACAS (Reuters) - President Nicolas Maduro's socialist government was on course to sweep Venezuela's nationwide mayoral elections on Sunday, deepening opposition disarray and strengthening his hand ahead of a likely 2018 re-election campaign.
With three of the main opposition parties boycotting the polls, Maduro said the ruling Socialist Party took at least 90 percent of the 335 mayorships in the OPEC nation that is suffering an unprecedented economic meltdown.
"I'm so happy for our great victory,," a beaming and dancing Maduro, 55, told a crowd in Plaza Bolivar in the capital Caracas. "Now let's get ready for 2018!"
According to the national election board's latest official count, the socialists had won 41 of 42 mayorships counted by late evening. But Maduro said the results overnight would show his government had won more than 300 of the total 335 polls.
Opposition parties, who boycotted the polls accusing the election board of bias towards Maduro's "dictatorship", said Sunday's election was - like others - full of irregularities including flagrant abuse of state resources.
"What happened today wasn't an election, and no one will see it as such," said the hardline opposition party Popular Will. "Venezuelans want to vote in free and fair conditions."
Maduro said the three abstentionist opposition parties - Popular Will, Justice First and Democratic Action parties - should be not be allowed to participate in future votes.
"They will disappear from the political map," said Maduro, now favorite to be the Socialist Party's candidate next year.
There is speculation the pro-Maduro election board may call the presidential poll for the first half of 2018, though it has traditionally been held in December. That would give the opposition a short window to unite and raise shattered morale.
With its most popular leaders barred in advance - Leopoldo Lopez is under house arrest and Henrique Capriles is prohibited from office - it may struggle to find a popular flagbearer.
Some more moderate parties in the disparate opposition coalition did run candidates on Sunday. That confused grassroots opposition supporters already despondent over the failure to weaken Maduro in months of protests earlier this year that turned violent and resulted in 125 deaths.
Under Maduro's rule since 2013, Venezuela has endured one of the worst economic meltdowns in Latin American history, with millions skipping meals, struggling to find medicines and reeling from the world's highest inflation rate.
But having faced down the deadly protests, pushed through a controversial legislative superbody in a July election boycotted by the opposition, and notched a surprise majority in October gubernatorial polls, Maduro has seen his fortunes rise.
"I'm voting for democracy," said 71-year-old government loyalist Jose Flores, voting in a poor western district of Caracas. "Today shows other nations there is no dictatorship here, on the contrary, we have peace and democracy."
Exulting in opposition divisions, the government cranked up its election machinery, including constant text messages to state employees urging them to demonstrate they had voted by uploading ID numbers and photos to state-run web sites.
"They won't leave us alone," grumbled one government ministry employee, who said she called her boss to protest phone harassment while she was out with her family on Sunday morning.
Opposition activists said the government flagrantly abused state resources, including bribing people to vote with handouts of food vouchers worth 500,000 bolivars - more than a monthly minimum wage or about $5 at the black market rate.
Participation was 47 percent.
In a parallel vote on Sunday, government candidate Omar Prieto won a rerun of the October state election in oil-rich western Zulia state.
Opposition leader Juan Pablo Guanipa had won that governorship in October, but the election was annulled after he refused to swear allegiance to the pro-Maduro Constituent Assembly superbody.
Former Zulia governor Manuel Rosales ran on the opposition ticket, but Guanipa supporters and other sectors of the opposition boycotting Sunday's vote called him a "traitor."
Opposition supporters who did vote on Sunday said the coalition had shot itself in the foot with the boycott.
"If we're going to change the government, we need to do it democratically," said 81-year-old retiree Raul Ocana.
"It was a huge mistake not to participate."
(Additional reporting by Johnny Carvajal, Leon Wietfeld and Deisy Buitrago in Caracas; Maria Ramirez in Puerto Ordaz; Anggy Polanco in San Cristobal; Tibisay Romero in Valencia and; Mircely Guanipa in Paraguana; Editing by Michael Perry)