DEV Community

rashi07-hub
rashi07-hub

Posted on

Web scrapping through Python (Part 3)

I have already given 2 small session this is 3rd one hope you enjoy it.

You can scrape a website in python either by beautiful soup library or by scrapy framework In this article we will learn to scrape websites using scrapy framework

Table of Content

Basic python
Scrapy framework
Practical example
Unique Tips while programming
Selenium webdriver
Applications of web scraping
Conclusions
References

IN THIS SESSION I'LL DISCUSS ABOUT PYTHON SCRAPPING...

  1. Python

Python is a general-purpose interpreted, high-level, programming
language. And the best thing about python is it is easiest language to learn
for beginners as well as for professionals. It is created by Guido van
Rossum and first released in 1991. Python can be used for many
applications like web scraping, web and internet development, software
development, science and numeric applications and many others. Python
source code is also available under the GNU general public license (GPL).
For this article knowledge of these topics will be advantage to you-
For loop
Conditional statements

Functions
List, tuples, dictionaries
And some basics of strings, numbers and operators

Examples of each topic is given below:

[ Example 1
country = ["india", "america", "japan",”germany”,”france”]
for i in country:
print(i)
Explanation > this will simply print all elements of list one by
one. ]

[ Example 2
a = 50
b = 55
if (b > a):
print("b is greater than a")
Explanation > as we can see “b” is greater than “a” so it will
print 55. ]

[ Example 3
def my_function():
if (i > 5):
print("Hello from a function")

my_function(i = 6)

Explanation > as it satisfies the if condition so it will call
the function and this function will simply print Hello from a
function ]

[ Example 4
list1 = ["apple", "banana", "cherry"]

print(list1)

=
tuple1 = ("apple", "banana", "cherry")

print(tuple1)

=
dict1 = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
print(dict1)
Explanation > this function will simply print the elements of
list tuple and dictionaries.
]

WHAT YOU GUYS THINK ABOUT DATA VISUALISATION TAP TO CHECK.

Top comments (0)