r/redditdev • u/testbott • May 21 '14
PRAW submit question
hi,
i am trying to submit a link to my sub, but i end up with a text post containing the link.
code i use to submit:
r.submit('mysub', title, link)The second problem is that links will be posted even though they exist already. There is a paramter in the submit method ("resubmit") but it doesnt do anything.
can someone help with the two problems?
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

1
u/6086555 May 21 '14 edited May 21 '14
Instead of just putting link, replace by url=link. If you don't, the argument that you're giving is text :
here is the order of the arguments
and don't worry about resubmit, it just doesn't work if your link is in a selfpost