Python Forum
Can't extract hidden input using Selenium!!!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't extract hidden input using Selenium!!!
#1
Hello!!
I'm trying to learn selenium from sometime but I got struck in a problem.. I'm trying to write a script for logging into my Facebook account and automate posting... But I'm unable to extract 'post' form using selenium selectors.. On inspecting then input type for the form shows 'hidden' and I think that's why the problem occurs.. I have searched for solutions but couldn't find any better.. Can anyone please help me out with this..
#I'm using python version 3.6

Thank you.
Reply
#2
First of all you should be using their API to post. I can tell you from experience that once they figure out you are automatically posting via a bot your account is jailed for an X amount of time. I have been jailed quite often. If you havent been...it means they restrict your account from what you automated. If it is posting in groups for example, then you are banned from posting in groups for awhile. I would advise to make a separate account for testing. However their API is a lot of extra BS crap you have to go through, if all you are doing is posting. If you time and imitate human delays in your program, it is harder for them to detect your bot. Facebook is probably the master of all websites at obfuscation in their code to mislead bot authors. As well as any trick in the book. I would suggest to learn selenium on a different site before tackling facebook.
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access text files, hidden behind 'm3u8' resources Pavel_47 4 2,253 Feb-19-2023, 02:47 PM
Last Post: Pavel_47
  Code example for entering input in a textbox with requests/selenium object peterjv26 1 1,715 Sep-26-2020, 04:34 PM
Last Post: Larz60+
  Selenium extract id text xzozx 1 2,126 Jun-15-2020, 06:32 AM
Last Post: Larz60+
  Extract data with Selenium and BeautifulSoup nestor 3 3,929 Jun-06-2020, 01:34 AM
Last Post: Larz60+
  Automatic login hidden form Andra111 0 1,638 Mar-26-2020, 08:06 AM
Last Post: Andra111
  selenium Ctrl + F input metulburr 4 6,280 Jul-14-2019, 01:12 PM
Last Post: metulburr
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,637 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020