(CNN) President Donald Trump railed against American women's soccer co-captain Megan Rapinoe Wednesday after the soccer star said she wouldn't go to the White House if the national team wins the World Cup before saying that he would invite them to visit "win or lose."

"I'm not going to the f*****g White House," Rapinoe told a reporter for Eight by Eight , a soccer magazine, when asked Tuesday if she was excited to go to the White House if her team wins.

"No. I'm not going to the White House. We're not gonna be invited. I doubt it," she added. She made the comments in January for the magazine's Women's World Cup issue, published in late May. Video from the interview was first released last week and has gained national attention in recent days.

In a series of tweets , Trump claimed that sports teams "love coming to the White House" and attacked Rapinoe, saying she "should WIN first before she talks!"

"Finish the job!" he said.

Read More