#!/usr/bin/python3
import requests, re
from bs4 import BeautifulSoup
url = 'https://www.facebook.com/login.php'
data = {"email":"login", "pass":"passwd"}
query = 'Nikolai Sobolev'
session = requests.Session()
authority = session.post(url, data=data)
search = session.get('https://www.facebook.com/search/str/{kay}/keywords_users'.format(kay=query))
content = search.text
soup = BeautifulSoup(content, 'lxml')
film_list = soup.find('div', {'class': ['_4-u2 _58b7 _4i6x _4-u8']})
print(film_list)
Find more questions by tags Beautiful SoupParsingPython
Whether it is possible as that to bypass so to speak.
Here is an example code:
Tried to pull out here so: pars = soup.find('ul', {'class': ['uiList _4kg _54nz _4kt']}) - nikita.Stracke commented on June 8th 19 at 16:47