CODING HACKING DEVELOPERS COLLEGE
6.15K subscribers
151 photos
8 videos
33 files
78 links
Disclaimer: This Channel is for educational purpose only , no one takes responsibility if you do anything wrong
π™ƒπ™–π™˜π™  π™π™π™š π™π™žπ™˜π™πŸ’²= π™π™šπ™šπ™™ π™π™π™š π™‹π™€π™€π™§πŸ™Œ


FOUNDER:- @TeamVoiceContactBot
Download Telegram
R105J44-EE25S41527406-answerKey (1).pdf
204.1 KB
GATE 2025 Electrical Engineering Paper Official Key
Scrap Image from bing using BeautifulSoup
import requests
from bs4 import BeautifulSoup as BSP

def split_url(url):
return url.split('&')[0]

def get_image_urls(search_query):
url = f"https://cn.bing.com/images/search?q={search_query}&first=1&cw=1177&ch=678"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
rss = requests.get(url, headers=headers)
soup = BSP(rss.content, "html.parser")

all_img = []
for img in soup.find_all('img'):
img_url = img.get('src2')
if img_url and img_url.startswith('https://tse2.mm.bing.net/'):
img_url = split_url(img_url)
all_img.append(img_url)

return all_img

print(get_image_urls("cat"))


sample response :
['https://tse2.mm.bing.net/th?q=Cat+Portrait', ...']
❀1πŸ‘1
Python Basics to Advanced NotesπŸ“š (1) (1).pdf
8.7 MB
πŸ”° Python From Scratch πŸ‘†

React ❀️ for more free resources πŸ”—

πŸ”€πŸ”€πŸ”€πŸ”€πŸ”€πŸ”€
Expert Python Programming.pdf
4.3 MB
Expert Python Programming (2021)

100 likes = new books
hands-on-data-science.pdf
15.3 MB
Hands-On Data Science and Python Machine Learning
Frank Kane, 2017
❀5
Enjoy our content? Advertise on this channel and reach a highly engaged audience! πŸ‘‰πŸ»

It's easy with Telega.io. As the leading platform for native ads and integrations on Telegram, it provides user-friendly and efficient tools for quick and automated ad launches.

⚑️ Place your ad here in three simple steps:

1 Sign up

2 Top up the balance in a convenient way

3 Create your advertising post

If your ad aligns with our content, we’ll gladly publish it.

Start your promotion journey now!
15 Best Project Ideas for Python : 🐍

πŸš€ Beginner Level:
1. Simple Calculator
2. To-Do List
3. Number Guessing Game
4. Dice Rolling Simulator
5. Word Counter

🌟 Intermediate Level:
6. Weather App
7. URL Shortener
8. Movie Recommender System
9. Chatbot
10. Image Caption Generator

🌌 Advanced Level:
11. Stock Market Analysis
12. Autonomous Drone Control
13. Music Genre Classification
14. Real-Time Object Detection
15. Natural Language Processing (NLP) Sentiment Analysis
❀3
Object in Python 🚘

Just look around, everything you see can be treated as an object.

For instance a Car, Dog, your Laptop are all objects.

An Object can be defined using 2 things:
- Properties: that describe an object
- Behaviour: the functions that an object can perform

...⬇️

For example, a Car is an object that has properties such as color & model, and behaviours such as accelerating, braking & turning.

But, how do we create these objectsβ“πŸ€”
❀1
Class in Python 🦾

Let's define a class Car & create it's Object ☝️

A class is like a blueprint for creating objects.

It defines a set of properties & functions (methods) that will be common to all objects created from the class.
Inheritance in Python πŸͺ’

check this out ☝️

Let's say we want to create an Electric car & don't want to define all the properties and methods of the basic Car class.

Inheritance helps us to inherit all the properties/methods of parent class & add new ones or override existing.
Encapsulation in Python 🚑

(Here's an example) ☝️

Encapsulation helps to bundle data and methods inside a class, restricting direct access to certain attributes and methods.

We use private attributes/methods (with a _ or prefix) to achieve this.
❀2
πŸ”° Filtering and Modifying Array Elements in JavaScript

You may want to filter out certain elements while modifying the remaining elements in an array.
In JavaScript, this can be accomplished in the following ways:


1. Using filter and map methods together.
2. Use the reduce method to achieve both tasks in a single step.
❀4