Posts

How to create a Twitter bot in just 10 lines of code

Image
How to create a Twitter bot in just 10 lines of code In this article, we will learn how to create a Twitter bot using a module called simpletwitter Why wait let's go Install the simpletwitter module pip install simpletwitter Yes Yes we have successfully installed the module Now get into the code, from simpletwitter import SimpleTwitter Create an instance for the class SimpleTwitter email = "Twitter_User_Email_Address" password = "Twitter_Password" user_name = "Abipravi1" #here i have entered my twitter username but you need to enter your's in this case no_of_tweets = 10 #this value is necessary how many no of tweets you want to perform operation bot = SimpleTwitter(email, password, no_of_tweets, user_name ) That's all we set up all the necessary requirements, Now let us go and perform the Twitter operations….. hashtags = ['#abipravi', #pythonmodule', '#twitter_bot'] tweetmessage = "My first tweet by simple twitter"

How to set focus to next input on enter key press in use ref hook in material ui text field

Image
Create an array of refs import React, {useState, useRef} from 'react'; export default function App() { const inputRefs = useRef([]); } Creating empty array with the length of 10 length = 10; import React, {useState, useRef} from 'react'; export default function App() { const inputRefs = useRef([]); const [data] = useState(...Array(length).keys()); } Source Medium Visit Medium For Full Source Thank you for reading Follow Us on Instagram Twitter Linked in Medium

Python secrets module - Token Generator

Image
Python supports vast number of inbuilt libraries for all the purposes like textprocessing, binary data processing, file and directory access and etc.. Now Let's see about secrets module in python Secrets module is used to generate secure random numbers for managing secrets The secrets modgraphiule is used for generating cryptocally strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets. In particular, secrets should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography. Generating Tokens secrets.token_bytes secrets.token_bytes([nbytes=None]) Return a random byte string containing nbytes number of bytes. If nbytes is None or not supplied, a reasonable default is used token_bytes(16) Output b'\xebr\x17D*t\xae\xd4\xe3S\xb6\xe2\xebP1\x8b'

Todo App in react js

Image
Tasks app in react js Hooks Code Output Source Code Full Source Code - GITHUB

Collection List Abipravi

Image
Abipravi has introduced an new web application for small finance to manage their daily collections and profit and loss. This app is used both online and offline the trail verson will be in offline. The premium pack will have the online support and also it has an high end security in django backend. Where the both back end as well as front end are encrypted This app is used both online and offline the trail verson will be in offline. The premium pack will have the online support and also it has an high end security in django backend. Where the both back end as well as front end are encrypted Click here View Demo

String Encoding and Decoding in Python

Image
Encoding is the process of turning thoughts into communication. The encoder uses a ‘medium’ to send the message — a phone call, mail, message. The reciver then ‘decodes’, the message into readable form. This process is called Encoding and Decoding Let's Encoding and Decoding in Python (With module and Without module). Encoding and Decoing in Python with module without module With Module Module Install pip install encodingdecoding Import encode and decode from encodedecode import * string = input("Enter String to encode:") encoded_string = encode(string) print(encoded_string) Output: Enter String to encode: welcome 119 126&101 108&108 115&99 106&111 118&109 116&101 108& Without Module Output: Enter String to encode: welcome 119 126&101 108&108 115&99 106&111 118&109 116&101 108& The above two met

Abipravi ceo - Praveen Kumar

Image
Abipravi has the official ceo now  Praveen kumar is the founder and the ceo of abipravi He is react expert and also back end develper Click here to visit Visit Ceo Praveen kumar