From selvi.dct at gmail.com Mon Oct 3 13:44:47 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 3 Oct 2022 23:14:47 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 03 Oct 2022 Message-ID: Date: 03 Oct 2022 Module : Scrapy Installation : pip install Scrapy About: Scrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pages. It can be used for a wide range of purposes, from data mining to monitoring and automated testing. Sample: import scrapy class ToScrapeCSSSpider(scrapy.Spider): name = "toscrape-css" start_urls = [ 'http://quotes.toscrape.com/', ] def parse(self, response): for quote in response.css("div.quote"): yield { 'text': quote.css("span.text::text").extract_first(), 'author': quote.css("small.author::text").extract_first(), 'tags': quote.css("div.tags > a.tag::text").extract() } next_page_url = response.css("li.next > a::attr(href)").extract_first() if next_page_url is not None: yield scrapy.Request(response.urljoin(next_page_url)) Execution: scrapy runspider scrape_sample.py -o quotes.json Reference: https://pypi.org/project/Scrapy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tshrinivasan at gmail.com Mon Oct 10 04:28:50 2022 From: tshrinivasan at gmail.com (Shrinivasan T) Date: Mon, 10 Oct 2022 13:58:50 +0530 Subject: [Chennaipy] Fwd: [kanchilug] Learn Python with me - An online workshop in KanchiLUG In-Reply-To: References: Message-ID: ---------- Forwarded message --------- ??????????: Iron Man Date: ????., 10 ???., 2022, ???????? 8:32 Subject: [kanchilug] Learn Python with me - An online workshop in KanchiLUG To: Hi All, As you all know, in this year, KanchiLUG has been conducting only two events: weekly discussions and monthly meets. But it is not limited to those events alone. In the past KanchiLUG conducted many workshops, technical stalls and install fests for linux etc., To start the activity back, I am planning on conducting an online Python workshop in KanchiLUG. Below is the plan for the workshop, Title : Learn Python with me Frequency of workshop : Weekends ( Both saturdays and sundays) Timing : Dynamic (Will be announced on every Friday prior to the class on saturday) Duration : Approx. 1 hr on weekends Starting date : Oct 15 Target audience : Complete beginners (Even who don't have prior experience of programming can attend) Topics to be covered: - Programming and its need - Why specifically python? - Input and outputs - Data types - Operators and variables - How to get help and explore python? - Methods and type casting - Data structures - (List, tuple, set, dictionary) - Control statements - (If else and all other types) - Looping - (for and while) - File handling - Practical use cases ( Web scraping Connecting to API Exception handling Automation Cryptography with python Creating a assistant with python ...more exciting projects ) Things you will need: - A laptop - Internet connection Note: This is a workshop so everyone has to practice it and learn it. Timings of the first session will be sent out in a mail on coming Friday. Kindly share this to everyone, who can benefit from this Side note: If you interested in teaching some topics of this workshop, you are welcome kindly contact me Any more queries: You can ask in this mail thread (or) you can also text me on telegram - https://t.me/paramesh2703 Thanks and Regards, Parameshwar Arunachalam stark20236 at gmail.com -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Oct 10 14:01:16 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 10 Oct 2022 23:31:16 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 10 Oct 2022 Message-ID: Date: 10 Oct 2022 Module : BeautifulSoup Installation : pip install BeautifulSoup About: Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree. Source: import requests from bs4 import BeautifulSoup URL = "http://www.values.com/inspirational-quotes" r = requests.get(URL) soup = BeautifulSoup(r.content, 'html5lib') # If this line causes an error, run 'pip install html5lib' or install html5lib print(soup.prettify()) Reference: https://pypi.org/project/BeautifulSoup/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreetykishore555 at gmail.com Wed Oct 12 08:46:55 2022 From: kreetykishore555 at gmail.com (kreety kishore) Date: Wed, 12 Oct 2022 18:16:55 +0530 Subject: [Chennaipy] hello Message-ID: i am new to this community. does it take many days to learn basic programs like prime numbers, fibonacci series,factorial etc. i have been trying to learn factorial of a given number for three days and i am still not getting it. how many of you are SELF TAUGHT python or did you guys joined an academy to learn python -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabakarank at sahaj.ai Wed Oct 12 09:31:20 2022 From: prabakarank at sahaj.ai (Prabakaran Kumaresshan) Date: Wed, 12 Oct 2022 19:01:20 +0530 Subject: [Chennaipy] HacktoberFest: Collaborate & Contribute! @ Sahaj, Chennai - Saturday, 15th Oct Message-ID: Dear Pythonista, We are organizing a day-long Hacktoberfest in-person event at the Sahaj Chennai office (near SRP Tools signal) on *Saturday, 15th Oct* 2022, from *10 am to 7 pm*. Join us to collaborate, contribute and celebrate open-source software engineering ? We have a few lightning talks lined up to help you get started and do some fun activities. *Don't forget to ? RSVP at the meet-up event.* Regards, Prabakaran -------------- next part -------------- An HTML attachment was scrubbed... URL: From waranlogesh at gmail.com Wed Oct 12 17:26:38 2022 From: waranlogesh at gmail.com (Logeshwaran Murugesan) Date: Thu, 13 Oct 2022 02:56:38 +0530 Subject: [Chennaipy] hello In-Reply-To: References: Message-ID: > i am new to this community. > > does it take many days to learn basic programs like prime numbers, > fibonacci series,factorial etc. > > i have been trying to learn factorial of a given number for three days and > i am still not getting it. > > how many of you are SELF TAUGHT python or did you guys joined an academy > to learn python > > Since you are new, you are trying to do two things at once - Learning the language - Learning the logic The approach which I would take is to understand the logic without the language, in this case python. Then learn the language while trying to implement the logic. -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Oct 17 14:36:03 2022 From: selvi.dct at gmail.com (selvi dct) Date: Tue, 18 Oct 2022 00:06:03 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 17 Oct 2022 Message-ID: Date: 17 Oct 2022 Module : housie Installation : pip install housie About: As the festive season about to begin and lots of guests at home. Lets entertain them in python way. Today lets see a module, which provides all the core models and logic required to simulate and play the classic game 'Housie' (also known as 'Bingo' or 'Tambola'). Execution: python -m housie Welcome to Housie! Press 'N' to Host a New Game Displays board, randomly picks numbers Press 'T' to Generate Tickets Generate tickets for Players to use to play the game Press 'F' to Follow a Game This mode allows you to follow a game being hosted by someone else, i.e. someone else is calling out the numbers as you sit and mark your tickets. This mode automates the marking of your tickets and shows a nice visual display of the board and your tickets. You can also quit and continue the game from where you left off later. (Game state is persisted) Before using this mode, enter your ticket(s) into 'data/followed_tickets.json' file in the current directory. Then start this mode and keep entering the numbers being called out. The status of your ticket(s) are automatically updated on screen. (This mode saves files into the 'data' folder in order to store the state of the housie board. If you want to start a new game, delete the file named 'data/followed_board.json') Press 'Q' to Quit Select an option to get started: Reference: https://pypi.org/project/housie/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From muthu1809 at gmail.com Thu Oct 20 09:13:56 2022 From: muthu1809 at gmail.com (=?UTF-8?B?4K6u4K+B4K6k4K+N4K6k4K+B4K6w4K6+4K6u4K6y4K6/4K6Z4K+N4K6V4K6u4K+NIOCuleCuvw==?= =?UTF-8?B?4K6w4K+B4K6f4K+N4K6f4K6/4K6p4K6p4K+N?=) Date: Thu, 20 Oct 2022 18:43:56 +0530 Subject: [Chennaipy] Needed: Event Space for Workshops in Chennai Message-ID: Hi, We plan to conduct Open One Day Events / Workshops Monthly / Quarterly on FOSS topics in Tamil in Chennai. It is decided to go with Free Events or very minimal fee [For lunch and snacks alone]. This is an idea we got from Last Month Tamil Open Source Conference. Kindly let me know if anyone could assist / guide on getting event space for the same in Chennai. Regards Muthu -- ??????. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakthivel at yalimobility.com Thu Oct 20 10:46:24 2022 From: sakthivel at yalimobility.com (SAKTHIVEL THAYAPPAHN) Date: Thu, 20 Oct 2022 20:16:24 +0530 Subject: [Chennaipy] Needed: Event Space for Workshops in Chennai In-Reply-To: References: Message-ID: Super, Highly appreciable. On Thu, 20 Oct, 2022, 6:44 pm ???????????????? ???????????, < muthu1809 at gmail.com> wrote: > Hi, > We plan to conduct Open One Day Events / Workshops Monthly / Quarterly on > FOSS topics in Tamil in Chennai. It is decided to go with Free Events or > very minimal fee [For lunch and snacks alone]. This is an idea we got from > Last Month Tamil Open Source Conference. Kindly let me know if anyone > could assist / guide on getting event space for the same in Chennai. > > Regards > Muthu > > -- > ??????. > _______________________________________________ > Chennaipy mailing list > Chennaipy at python.org > https://mail.python.org/mailman/listinfo/chennaipy > -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Sun Oct 23 23:50:50 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 24 Oct 2022 09:20:50 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 24 Oct 2022 Message-ID: Date: 24 Oct 2022 Module : thirukkural Installation : pip install thirukkural About: A python3 module / command-line tool for Thirukkural. Execution: # Display a random Thirukkural % thirukkural ????: ?????????????(3/3) | ????: ???????(9/10) | ????????: ????????????????(109/133) ?????-1085: ??????? ????? ?????? ?????? ????????? ???????? ???????. kootramoa kaNNoa piNaiyoa madavaral noakkamim moondrum udaiththu ??.? ???: ????. ?????, ????????, ???? ???? ???????? ?????? ???? ??????? ????????? ??????? ??????????. ?????? ???????? ???: ????? ??????????????? ????? ??? ???? ??????? ????????? ?????? ??? ??? ???? ????????? ????????? ??????????? ?????? ????????? ???????????? ???????????????. # Display a random Thirukkural in English % thirukkural -en Category: Righteousness(1/3) | Sub-Category: Domestic Virtue(2/10) | Chapter: Duty to Society(22/133) Verse-217: Unfailing tree that healing balm distils from every part, Is ample wealth that falls to him of large and noble heart. Meaning: If wealth be in the possession of a man who has the great excellence (of benevolence), it is like a tree which as a medicine is an infallible cure for disease. Reference: https://pypi.org/project/thirukkural/ -------------- next part -------------- An HTML attachment was scrubbed... URL: