parent
3afdc38cb4
commit
d11b177344
@ -0,0 +1,10 @@
|
|||||||
|
import re
|
||||||
|
from utils import print_substep
|
||||||
|
|
||||||
|
def id(reddit_obj: dict):
|
||||||
|
"""
|
||||||
|
This function takes a reddit object and returns the post id
|
||||||
|
"""
|
||||||
|
id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"])
|
||||||
|
print_substep(f"Thread ID is {id}", style="bold blue")
|
||||||
|
return id
|
Loading…
Reference in new issue