Skip to content
Sign upLog in
← Back to Community

a crazy chemical dictionary

Profile icon
sgcoder1337

small chemical dictionary where you can search with the formula of your chemical, will add more if there are suggestions

Voters
Profile icon
f6f6
Profile icon
lsikora
Profile icon
OLIVERWEE
Profile icon
CodeStudent1337
Profile icon
NFadhlurrahman
Profile icon
sgcoder1337
Comments
hotnewtop
Profile icon
VulcanWM

One suggestion: maybe instead of using a dict for this and then updating it every time you have a new chemical to add, web scrap it from a website and just use their json

Profile icon
CodeStudent1337

@VulcanWM
how do you do this?

Profile icon
CodeStudent1337

@VulcanWM
just asking

Profile icon
sgcoder1337

@VulcanWM
ok

Profile icon
sgcoder1337

@VulcanWM
so I researched web scraping with python and was successful, but I couldn't find any websites with a list of enough chemical names and their formulas, so I'm sadly not going to do it.

Profile icon
VulcanWM

https://realpython.com/beautiful-soup-web-scraper-python/


@CodeStudent1337

Profile icon
VulcanWM

okay

@sgcoder1337

Profile icon
VulcanWM

What about PubChem

Profile icon
365DaysOfCode

@VulcanWM
oh yes
I was thinking of chemspider lol

Profile icon
VulcanWM

lmao

@365DaysOfCode