Closed Ayushk4 closed 5 years ago
If tag[0].islower()
-> tag.capitalize()
?
@Ayushk4
Capitalize only the first letter,
node["name"][0].capitalize()
By this I mean Using
node["name"][0] = node["name"][0].capitalize()
topics.append(node["name"])
Closing this. via #122
https://github.com/kossiitkgp/kwoc/blob/0f06d5e7dc51fefe9445dbfd3a8a8c0b9b47d6f5/tag_scrapper/main.py#L40
As of now what the package does is convert all the strings to ones with the first letter capitalized. For example:
python
toPython
, but also convertsHTML
toHtml
, we need the code to capitalize only the first letter and not convert the remaining to lowercase, i.e. we would wantHTML
to be kept asHTML
only butpython
should be changed toPython
cc @xypnox @arnav-t