PYTHON MONEY
Open in Telegram
1 903
Subscribers
No data24 hours
+17 days
+630 days
Posts Archive
1 903
π VPN Master (additional materials): https://drive.google.com/drive/folders/1h_iPhsnkD_QwzZT4tbMrqZS98C0jGwsC?usp=sharing
1 903
π I wrote a bot for detecting faces in photos. Here are the faces I was able to detect in this photo.
1 903
π± Writing a TikTok Video Downloader right now. Would you like to get it?
1 903
# π€ Make your Selenium to bypass some of the most sophisticated anti-bot mechanisms on the market today like DataDome, Perimeterx and Cloudflare.
1.
pip install undetected-chromedriver
2. import undetected_chromedriver as uc
3. chrome_options = uc.ChromeOptions() # Set chrome options
4. driver = uc.Chrome(options=chrome_options) # Create undetected chromedriver instance with options
5. driver.get('https://bot.sannysoft.com/') # Send request1 903
# π Thoughts on ComparisonBot
π I hope you enjoyed ComparisonBot. The bot automates the entire process of creating videos for channels of this type.
But what bottleneck do we have here? What consumes our time? That's right, preparing data for videos, preparing CSV tables.
How can we automate this? I'll give you one way.
π What will you need: Write a parser using the Beautiful Soup library to save data in CSV tables
1. Find a website on Google with reviews of the top 10-20 topics you need.
2. Write a bot that will navigate the necessary articles on the website, extract the necessary information, and save the images. Save the data based on the CSV file from the video (crossover.csv).
3. Feed the saved CSV files to the ComparisonBot and get long PNG images.
4. Feed the images to the bot and get videos.
This way, you can prepare dozens and hundreds of such videos very quickly. When parsing, you can also save titles and descriptions for subsequent upload to YouTube.
If you don't have the skills yet, this can be great practice. Data scraping is an excellent foundation for learning Python.
π₯ Excellent tutorials on web scraping in Python: Python Web Scrapping Playbook
1 903
β‘ποΈ Some people asked to add the ability to automatically merge the generated images into a PDF file in ColoringBot.
β
I have added this feature. I wrote it using the reportlab library, one of the most powerful libraries for working with PDFs in Python.
1. Redownload the .py files of the project.
2. Install the reportlab and natsort libraries:
pip install reportlab natsort
3. Generate images so that they appear in the ready folder.
4. Run the merge_pdf.py file.
5. The final PDF file will be saved in the ready/PDF folder.
βΉοΈ In the merge_pdf.py file, you will find variables to enable adding blank pages, specifying a title, author, and other metadata, and other settings.1 903
β οΈ β οΈ If you encounter the error "UnicodeDecodeError: 'charmap' codec can't decode byte..." in PinterestBot 2.0 try the following: β οΈ β οΈ
1. If you're using Windows, open the data.csv file in Excel and remove emojis. Save the file in CSV format. This is an issue with emoji decoding on Windows.
2. If that doesn't help, prepare the data.csv file using Excel from the start, not Google Sheets. Also, remove all emojis and ensure they are not in the description.
3. If that doesn't help either, try specifying the utf-8 encoding in the check_csv_delimiter function in the image_generator.py file like this:
def check_csv_delimiter(file_path):
with open(file_path, 'r', encoding='utf-8') as file:
And also in the open_data function like this:
def open_data(folder_name):
file_path = READY / folder_name / 'data.csv'
delimiter = check_csv_delimiter(file_path)
with open(file_path, 'r', newline='', encoding='utf-8') as data:
4. If that doesn't help, replace the UTF-8 encoding with encoding='windows-1251'.
5. Also, you may need to specify the encoding in the write_to_csv function like this:
with open(file_path, write_mode, newline='', encoding='utf-8') as out_file:
π₯ Play around with these aspects, and everything should work. Many are already successfully using both the generator and the uploader.1 903
πΈ Websites... One of the upcoming BIG topics I'm going to cover. In the screenshot, I'm calculating the LSI vector of the article considering Zipf's Law.
1 903
Some people requested the Amazon titles parser from the last video. I'm sharing it. Read the readme file.
π AmazonParser: https://drive.google.com/drive/folders/1_z-gqOnXDVnAGWz9-fFs20qMpwm1Iy7x?usp=sharing
1 903
π£ π₯ π I've released PinterestBot 2.0, and now I'm planning to release a comprehensive tutorial on affiliate marketing using this software. Starting from selecting an affiliate network and offer, all the way to content uploading and scaling.
But this requires a certain amount of time. Stay tuned.
1 903
π CHANGES IN THE PINS GENERATOR 2.0 (https://drive.google.com/drive/folders/1_vQCS6lvQrQ9W7ljdmPvaa1jAUhydLG0?usp=sharing):
β
Added the ability to change file resolutions, DPI, and save format (variables page_width, page_height, save_format, dpi).
β
Option to enable/disable preview and saving (variables show, save).
β
Ability to write data to the uploading_data.csv file for later uploading (write_uploading_data).
β
Option for automatic resizing of the background image (resize_image, resize_width).
β
Option to change the number of tips (how_many_tips).
β
Option to disable circles with tip numbers (ellipses).
β
Option to change the transparency of rectangles and ellipses (rectangle_transparency, ellipse_transparency).
β
Option to add a call-to-action at the top of the image, bottom, or both (bottom_section, top_section).
β
Option to add a gradient to the background (gradient).
β
Delimiters in CSV files are now automatically detected.
β
Numerous other variables for changing margins, sizes, colors, distance between tips, and more.
1 903
π CHANGES IN THE PINS UPLOADER 2.0 (https://drive.google.com/drive/folders/1_vQCS6lvQrQ9W7ljdmPvaa1jAUhydLG0?usp=sharing):
β
Connected the uploading_data.csv uploading manager (should be present in each project folder).
β
Added the ability to specify titles, descriptions, hashtags, emojis, links, and boards for each image (in the uploading_data.csv file).
β
Added the ability to upload your own images with their data (simply provide paths to images and other data in the uploading_data.csv file).
β
Added a function for automatic board creation (fill out the boards.csv file and activate the function in the accounts.csv account manager).
β
Titles and descriptions exceeding the allowed length are automatically truncated.
β
Delimiters in CSV files are now automatically detected.
β
Code stability has been improved.
