NEW YORK, NY - JULY 23:  Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents.  (Photo by John Moore/Getty Images)
John Moore/Getty Images North America/Getty Images
NEW YORK, NY - JULY 23: Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents. (Photo by John Moore/Getty Images)
Now playing
01:12
Weiner to plead guilty to sexting minor
Former Congressman Anthony Weiner (D-N.Y.) arrives at federal court for his sentencing hearing in a sexting scandal, Monday, Sept. 25, 2017, in New York.
Mark Lennihan/AP
Former Congressman Anthony Weiner (D-N.Y.) arrives at federal court for his sentencing hearing in a sexting scandal, Monday, Sept. 25, 2017, in New York.
Now playing
00:34
Weiner sentenced to 21 months in sexting case
NEW YORK, NY - JULY 23:  Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents.  (Photo by John Moore/Getty Images)
John Moore/Getty Images North America/Getty Images
NEW YORK, NY - JULY 23: Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents. (Photo by John Moore/Getty Images)
Now playing
01:08
Social media blasts Anthony Weiner
Anthony Weiner and Huma Abedin  arrive at the Costume Institute Benefit at The Metropolitan Museum of Art May 2, 2016 in New York.
TIMOTHY A. CLARY/AFP/Getty Images/FILE
Anthony Weiner and Huma Abedin arrive at the Costume Institute Benefit at The Metropolitan Museum of Art May 2, 2016 in New York.
Now playing
02:51
Huma Abedin, Anthony Weiner split after sexting claims
The gate-keeper -  Huma Abedin has worn many hats for Hillary Clinton - intern, "body woman," chief of staff - but the title that best describes her is gate keeper and confidant. No one without the last name Clinton is said to have a tighter relationship with the former secretary of state. Although her formal title in the 2016 campaign is not yet clear, she remains one of Clinton's most trusted personal aides.
Brendan Smialowski/AFP/Getty Images
The gate-keeper - Huma Abedin has worn many hats for Hillary Clinton - intern, "body woman," chief of staff - but the title that best describes her is gate keeper and confidant. No one without the last name Clinton is said to have a tighter relationship with the former secretary of state. Although her formal title in the 2016 campaign is not yet clear, she remains one of Clinton's most trusted personal aides.
Now playing
03:25
Who is Huma Abedin? (2016)
Huma Abedin, wife of Anthony Weiner, a leading candidate for New York City mayor, speaks during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents.
John Moore/Getty Images
Huma Abedin, wife of Anthony Weiner, a leading candidate for New York City mayor, speaks during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents.
Now playing
02:02
Abedin, Weiner split amid new sexting scandal
Getty Images/CNNMoney
Now playing
02:49
Trump uses sexting scandal to attack Clinton
NEW YORK, NY - JULY 23:  Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents.  (Photo by John Moore/Getty Images)
John Moore/Getty Images North America/Getty Images
NEW YORK, NY - JULY 23: Anthony Weiner, a leading candidate for New York City mayor, stands with his wife Huma Abedin during a press conference on July 23, 2013 in New York City. Weiner addressed news of new allegations that he engaged in lewd online conversations with a woman after he resigned from Congress for similar previous incidents. (Photo by John Moore/Getty Images)
Now playing
02:05
Officials: US attorney investigates Weiner allegations
newday acosta weiner buzzfeed interview_00002812.jpg
newday acosta weiner buzzfeed interview_00002812.jpg
Now playing
01:43
Weiner: 'What I've done has hurt' Abedin
donald trump boston event bts erin _00000000.jpg
donald trump boston event bts erin _00000000.jpg
Now playing
02:28
Donald Trump: Anthony Weiner is a 'bad guy'
exp erin vo weiner fires back at heckler_00005713.jpg
exp erin vo weiner fires back at heckler_00005713.jpg
Now playing
02:46
Anthony Weiner's bakery tussle
sbt leathers new porn video_00005424.jpg
sbt leathers new porn video_00005424.jpg
Now playing
02:14
Weiner sexter: I'm proud of myself
buzzfeed brews weiner jokes tsr_00002218.jpg
buzzfeed brews weiner jokes tsr_00002218.jpg
Now playing
01:03
Weiner: 'The jokes write themselves'
tsr dnt Jeanne Moos Anthony Weiner goodbye from race_00001520.jpg
tsr dnt Jeanne Moos Anthony Weiner goodbye from race_00001520.jpg
Now playing
02:24
Weiner campaign bites the dust

Story highlights

Weiner pleaded guilty Friday to transferring obscene material to a minor

Abedin, a top aide to former Democratic presidential nominee Hillary Clinton, was not present at the hearing

(CNN) —  

Huma Abedin has filed for divorce from former Rep. Anthony Weiner, a move she made prior to Weiner pleading guilty Friday to transferring obscene material to a minor, a source familiar with the matter told CNN.

Abedin, a top aide to former Democratic presidential nominee Hillary Clinton, was not present at Friday’s hearing.

A message left with a representative for Abedin seeking comment Friday morning was not returned.

At the hearing Friday, Weiner accepted responsibility for his conduct. “I have a sickness, but I do not have an excuse,” he said through pauses and bouts of tears in an emotional statement. “I entered intensive treatment, found the courage to take a moral inventory of my defects, and began a program of recovery and mental health treatment that I continue to follow every day.”

As part of the plea agreement, Weiner, 52, will register as a sex offender and also will have to forfeit his iPhone, surrender his passport and continue mental health treatment. He is also barred from having any contact with the minor.

“Today, former Congressman Anthony Weiner admitted and pled guilty to sending sexually explicit images and directions to engage in sexual conduct to a girl he knew to be 15 years old,” acting US Attorney Joon H. Kim of the Southern District of New York said in a statement. “Weiner’s conduct was not only reprehensible, but a federal crime, one for which he is now convicted and will be sentenced.”

The government recommended between 21 and 27 months imprisonment, which Weiner’s counsel agreed to, though ultimately it is up to a judge to decide.