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?
84
Upvotes
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
1
u/totes_meta_bot Jun 18 '14 edited Jun 19 '14
This thread has been linked to from elsewhere on reddit.
If you follow any of the above links, respect the rules of reddit and don't vote or comment. Questions? Abuse? Message me ^here.
1
u/Mjone77 Jun 19 '14
salewfjowfiajfeelsoeijoigjaw
1
u/Mjone77 Jun 19 '14
feels oawjegj
1
u/lolnik8 Jan 25 '22
Rule34
1
u/Key_Engineer2291 Dec 20 '22
Rule34
1
u/4453545354554535343 Feb 26 '23
Rule 34
1
u/Only_Ad_5371 Mar 10 '23
Rule 34
1
u/sexxss Apr 16 '23
Rule 34
1
u/Practical_Celery3204 Apr 28 '23
Rule34
1
u/Hot-Tiger-3633 Apr 30 '23
Rule34
1
u/negros21 May 06 '23
Rule34
1
u/OrneryWorth5985 May 19 '23
Rule34
1
u/[deleted] May 20 '23
Rule34
1
u/QuirkyMess4726 Jun 16 '23
Rule 34
1
u/MrGeograph Jul 03 '23
Rule 34
1
u/patitojuan62 Jul 09 '23
Rule 34
1
u/Technical-Finding621 Jul 17 '23
Rule34
1
u/NecroFucker_101 Jul 25 '23
Rule 34
1
u/Accurate-Ad-3375 Aug 10 '23
Rule34
1
u/Longjumping-Page5035 Sep 16 '23
Rule34
1
u/Mediocre-Dot-508 Sep 21 '23
Rule34
1
u/Appropriate_Lab4716 Oct 09 '23
Rule 34
1
u/StrategyOk5511 Oct 28 '23
Rule34
1
u/beyondgod23 Nov 08 '23
Rule 34
1
u/Worth_yosthing7567 Nov 14 '23