Automating Facebook Post Using PythonPosted in Getting Started a few seconds ago

Backtworace
Nov 3, 2020

--

use below python script to Automating Facebook Post Using Python
def fetch_articles(session, search_query):

SEARCH_URL = 'https://www.mydealz.de/search'
SEARCH_DATA = {'q': search_query}
search_request = session.get(url=SEARCH_URL, params=SEARCH_DATA)
response = BeautifulSoup(search_request.text, 'lxml')
articles = response.select('article.thread')
articles_objects = []
for article in articles: title = article.select('div.threadGrid-title .thread-title a')[0]['title']
description = article.select('div.cept-description-container')[0].text
link = article.select('div.threadGrid-title .thread-title a')[0]['href']
articles_objects.append({
'title': title,
'description': description,
'link': link,
})
return articles_objects

--

--

Backtworace
Backtworace

Written by Backtworace

I am founder of <a href=”https://pythonslearning.com”>pythonslearning</a>

No responses yet