Parsing a tweet in three lines

For this demonstration, I created an account on Twitter. My profile name is @HussamKhrais.

So, I will log into my Twitter account from the Kali machine and send a tweet, and we will see how easy it is to grab that tweet from the target machine. So let's get started by first composing a new tweet (for example Hello from kali python) and log out from the account. Let's now have a quick look at the HTML page that gets created after posting the tweet, by viewing the page source. Search and find the the tweet we just made. Then, if we scroll to the left a little bit, notice the HTML meta tag parameters:

<meta name="description" content="The latest Tweets from Hussam Khrais (@HussamKhrais): &quot;Hello from kali python&quot;"> ...

Get Python for Offensive PenTest now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.