A few days ago, I saw "100 days of code" talk on YouTube. A girl over there was telling how it changed her life (Link at the bottom of this blog). So I decided to give it a try. I had a habit of quitting everything before finishing it. For this and most of all, I was unproductive in Lockdown due to Corona Virus. I wanted to utilize this time. So I went to 100 days of code website . I was motivated by the thought I wanted to do something, so I tweeted their tweet. Till that time I was unsure, what am I going to do? I just tweeted and wanted to figure it out what I would be doing. I thought for half an hour. Reviewing all of my coding skills I decided to do Android Projects. I have successfully completed my day 1. It was fun because I did study a little study and knew some of Android prior to coding. Check out my GitHub . I have shared my thoughts on the log of Day0. You can also find my log over there. I will write several other blogs what state am I at? How much did I impr
from bs4 import BeautifulSoup import requests import csv source = requests.get( "http://nepalstock.com.np/" ).text soup = BeautifulSoup(source, 'lxml' ) csv_file = open ( 'nepse.csv' , 'w' ) csv_writer = csv.writer(csv_file) csv_writer.writerow([ 'Symbol' , 'Values' , 'Total Traded amount' ]) marquee_tag = soup.find( 'div' , class_ = "col-xs-10 col-md-10 col-sm-12" ).marquee.b for span_tag in marquee_tag( 'span' ): span_tag.replace_with( '' ) for img_tag in marquee_tag( 'img' ): img_tag.replace_with( '' ) symbol_list = marquee_tag.text.split( '( )' ) all_symbols = [] short_name = [] per_share_value = [] total_traded_amount = [] a1 = [] a2 = [] a3 = [] for symbol in symbol_list: symbol_name = symbol.replace( u ' \xa0 ' , u '' ) all_symbols.append(symbol_name) all_