Why not let the technology work!
Social media has been an important factor in life. Whether it be maintaining a social reputation or just exploring different social media platforms. Important, as it is - to utilize the social media for our means so, is the engagement with different people present on different platforms.
The 'engagement' has been an important factor to maximize our reach to gain followers, likes & even shares.
For some people, they want to gain followers so as to sell their product or market it within a great reach. So think of having an assistant which does the same work without bothering you and will help you get some massive engaged followers from the category you want.
A Bot is just an automated software that performs a function of specific need // Input. For this system, I've used Twitter as a social media platform. I'll explain thoroughly how to perform from the basics.
So as of now, I've used python as the development software with selenium as a portable framework. For the code part, I've made a class inside which I have made 3 functions mainly or for initialization other for the login info. and the last one for automated likes.
The 'engagement' has been an important factor to maximize our reach to gain followers, likes & even shares.
For some people, they want to gain followers so as to sell their product or market it within a great reach. So think of having an assistant which does the same work without bothering you and will help you get some massive engaged followers from the category you want.
A Bot is just an automated software that performs a function of specific need // Input. For this system, I've used Twitter as a social media platform. I'll explain thoroughly how to perform from the basics.
So as of now, I've used python as the development software with selenium as a portable framework. For the code part, I've made a class inside which I have made 3 functions mainly or for initialization other for the login info. and the last one for automated likes.
Before going further let me tell you that by utilizing the same algorithm and logic you can perform the same function on other social media platforms.
Coming back to the frame, so the initialization function initializes the username and password info. You need to also initialize the web driver - depending on what you are using - Chrome or Firefox.
The Login info as the name suggests this function utilizes the login information. First, you need to get the website URL and use that as the web driver's first input. So as soon as I run the program my Chrome opens and the first page it will open is the website URL that you have specified in the code ( which in my case is https://www.twitter.com/ ). After that go to the login page of twitter and press F12( Windows ) to inspect elements and press ctrl+shift+c to inspect particular elements. Go to the Login email address and inspect it. In the inspection box, you'll see class, You can select any class and address it accordingly. In my case for the email, I've used - Find_element_by_name('session[username_or_email]') and do the same for password.
For the auto liking function, I've used hashtags as my reach filter. So let's say I want to engage with people who like formula1, DTM, MotoGP. So I've used the search URL and replaced the main search topic with any variable name. So that I can write as many hashtags as I can. Afterward, I've specified a 'for' loop for my scrolling part because the bot needs to get information from other posts as well. I've also used data-permalink-path so as to get information about every tweet by a specified hashtag.
Next what I've done is again utilized the inspect element to get the 'HEART'( Like in case of twitter') and go through its class in the inspection.
Lastly, I've copied the inspected class and used it to forcefully like in python under a for loop itself which is in accordance with the loop specified above.
In the end, I've specified a variable which inputs my username and password to ultimately call login function in the end which when run will perform all the functions automatically.
It's an easy way to like posts related to your area and there is a chance that people will surely follow you back. Have fun!!
Coming back to the frame, so the initialization function initializes the username and password info. You need to also initialize the web driver - depending on what you are using - Chrome or Firefox.
The Login info as the name suggests this function utilizes the login information. First, you need to get the website URL and use that as the web driver's first input. So as soon as I run the program my Chrome opens and the first page it will open is the website URL that you have specified in the code ( which in my case is https://www.twitter.com/ ). After that go to the login page of twitter and press F12( Windows ) to inspect elements and press ctrl+shift+c to inspect particular elements. Go to the Login email address and inspect it. In the inspection box, you'll see class, You can select any class and address it accordingly. In my case for the email, I've used - Find_element_by_name('session[username_or_email]') and do the same for password.
For the auto liking function, I've used hashtags as my reach filter. So let's say I want to engage with people who like formula1, DTM, MotoGP. So I've used the search URL and replaced the main search topic with any variable name. So that I can write as many hashtags as I can. Afterward, I've specified a 'for' loop for my scrolling part because the bot needs to get information from other posts as well. I've also used data-permalink-path so as to get information about every tweet by a specified hashtag.
Next what I've done is again utilized the inspect element to get the 'HEART'( Like in case of twitter') and go through its class in the inspection.
Lastly, I've copied the inspected class and used it to forcefully like in python under a for loop itself which is in accordance with the loop specified above.
In the end, I've specified a variable which inputs my username and password to ultimately call login function in the end which when run will perform all the functions automatically.
It's an easy way to like posts related to your area and there is a chance that people will surely follow you back. Have fun!!
For code or any query, you can -
directly mail me- [email protected]
LinkedIn - https://www.linkedin.com/in/vedanshu-seedwan/
LinkedIn - https://www.linkedin.com/in/vedanshu-seedwan/
For this example, I've used - 'India' as a hashtag.
_________________________________________________________________________________
follow us on other social platforms:
Instagram: https://www.instagram.com/innovationsfy
Facebook: https://www.facebook.com/innovationsfy/
______________________________________________________

0 Comments