Python Forum
I need request POST for Facebook in My Profile - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: I need request POST for Facebook in My Profile (/thread-5303.html)



I need request POST for Facebook in My Profile - Kalet - Sep-27-2017

I will try to be as specific as possible. I am trying to make a request by POST method to publish a certain link in my profile. I've used the Facebook API, but it's not what I need. I need to do this:
 
[Image: 3tLD6.png]

When I click click publish, I should post it to my profile, I need to do this without the Facebook API. I have noticed that clicking on the 'post' button makes a post request, but I do not know how to do it in Python.

I left in this link the buttons that are used to share.

XXX.com/test/test.html

I would appreciate your cooperation.

Thanks for you.


RE: I need request POST for Facebook in My Profile - metulburr - Sep-27-2017

use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You can switch it to click the button you want on your profile instead.


RE: I need request POST for Facebook in My Profile - Kalet - Sep-27-2017

(Sep-27-2017, 05:30 PM)metulburr Wrote: use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You can switch it to click the button you want on your profile instead.

That is, would you have to change the "to friends" function?


RE: I need request POST for Facebook in My Profile - metulburr - Sep-27-2017

yeah you can just change the to friends function to click whatever you want.


RE: I need request POST for Facebook in My Profile - Kalet - Sep-27-2017

(Sep-27-2017, 05:41 PM)Kalet Wrote:
(Sep-27-2017, 05:30 PM)metulburr Wrote: use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You can switch it to click the button you want on your profile instead.
That is, would you have to change the "to friends" function? 

I'm going to try, anything I can ask you again?  Thanks for you

(Sep-27-2017, 05:41 PM)Kalet Wrote:
(Sep-27-2017, 05:30 PM)metulburr Wrote: use selenium to click the button. Here is a script that logs into facebook with selenium and goes to friends list. You can switch it to click the button you want on your profile instead.
That is, would you have to change the "to friends" function? 

This is awesome! works perfectly! Thank you, thank you very much :D