TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Muler, a search engine for drug info built with Flask

88 点作者 pizzicato将近 4 年前

17 条评论

pizzicato将近 4 年前
Hi HN,<p>Muler is a Flask app that allows users to search for pharmacological information by entering generic or proprietary drug names. External libraries used include Flask, SQLAlchemy, and FuzzyWuzzy.<p>This is a hobby project I made during my final year of medical school. As far as I can tell from the logs there are no more than five humans who use it semi-regularly (lots of bots pinging though). I don&#x27;t mind because I find it very useful personally, and I&#x27;ve also learned a lot about Python, web dev, and databases.<p>Right now I&#x27;m trying to refactor the code (just wrote my first class) and implement unit tests (just started reading the Pytest docs), so I&#x27;d really appreciate specific feedback and tips about those.<p>Thanks for your time!<p>URL: <a href="http:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;</a><p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;PizzaMyHeart&#x2F;muler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PizzaMyHeart&#x2F;muler</a>
daviddaviddavid将近 4 年前
Suggestion: If the search result is a synonym of the search query, display a message at the top saying so.<p>As a layperson, I searched for &quot;aspirin&quot; and got a result for &quot;Acetylsalicylic acid&quot; and I didn&#x27;t know if the search result was even correct. If it had said &quot;Acetylsalicylic acid is a synonym of aspirin&quot;, things would have made sense immediately.<p>(I think Wikipedia displays such types of disambiguation info at the top of their pages.)
评论 #27892604 未加载
treis将近 4 年前
There seems to be some fuzzy matching logic gone awry. I searched for &quot;insulin&quot; and it brought me to &quot;inulin&quot; which are very different things.
评论 #27883547 未加载
评论 #27892597 未加载
usrme将近 4 年前
Congratulations on a very nice hobby project, and reaching the front page of Hacker News!<p>A few questions though:<p>- is the indentation of section headings, such as &quot;Indication&quot;, &quot;Pharmacodynamics&quot;, etc, intentional? The yellow highlight seems to take care of the emphasis on its own. It feels, to me, it should either be one or the other.<p>- when sections (e.g. &quot;Pharmacodynamics&quot;) include clear points of emphasis within them (e.g. asterisks for bold), then could those perhaps be rendered as sub-headings for increased readability? An example can be seen when searching for &quot;codeine&quot;: <a href="https:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;codeine" rel="nofollow">https:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;codeine</a>
评论 #27895003 未加载
antman将近 4 年前
Nice, very responsive. I am on mobile and: when I click on synonyms I lose the products button. Also when I click on products a better formatting of the list, had a hard time on when a oroduct ended and another one started.
评论 #27879955 未加载
mrmattyboy将近 4 年前
Looks great - only thing that immedaitely felt missing (although probably due to not being a member of the target audience) is a typeahead for the search :)
评论 #27880853 未加载
评论 #27895024 未加载
CiceroCiceronis将近 4 年前
As a fellow medical student this looks very useful, thanks.<p>If you want an idea for a future project, I conceived a little while ago of a browser extension enabling hover-over drug info pop-ups in the same vein as YomiChan (a tool providing mouse-over definitions for Japanese language learners). Maybe I’ll get to that at some point.
评论 #27895177 未加载
danhanlon将近 4 年前
This is pretty good, nice work! I think you&#x27;re spot on that sometimes you just need a simpler overview of info.<p>One thing I&#x27;ve noticed is that the first line under the drug name, I guess is the category? Some of them are probably a bit more specific than they need to be, like ibuprofen: <a href="https:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;Ibuprofen" rel="nofollow">https:&#x2F;&#x2F;muler.pythonanywhere.com&#x2F;Ibuprofen</a><p>You could take the summary from DrugBank instead of a category, but that might have other issues too.<p>Either way, I&#x27;ll probably come back and use this in the future!
评论 #27895075 未加载
louis___将近 4 年前
I do not know anything about drugs, but I searched for &quot;heroin&quot;, and was brought to the &quot;Diamorphine&quot; page, which seems a bit different.<p>Regarding your request on unit tests : do not do too much of them, too low-level. Try to write tests whose output should not change, should you refactor, this way they will help you avoid side-effects of refactoring. If your unit tests are too low-level, you will need to change them everytime you change your code.<p>One good think to test would be your fuzzy-matching logic, with edge cases taken into account.<p>Happy hacking !
评论 #27884086 未加载
评论 #27895054 未加载
评论 #27885269 未加载
valbaca将近 4 年前
Based on the About page, and the information provided by the page, I&#x27;m obviously not the target audience for this page, but it was interesting information nonetheless.<p>Could definitely need some speed improvements or at least some indication of what&#x27;s going on. Loading spinners are a band-aid, but are better than nothing.
评论 #27879944 未加载
dn3500将近 4 年前
Very nice. As others have said, the sections that start with headings inside double asterisks (&quot;*&quot;) should be set off somehow. I would suggest a paragraph break, with the heading either on a separate line or on the same line with some distinguishing typography such as bold.
评论 #27895084 未加载
chilldsgn将近 4 年前
Nice, looks good! I would suggest increasing leading in the paragraphs when you view a specific drug, they&#x27;re a bit close together and make reading difficult.
评论 #27895117 未加载
contravariant将近 4 年前
Is the markdown in the descriptions supposed to say unrendered? I&#x27;m seeing quite a phrases with ** around them, which would normally indicate bold text.
评论 #27895111 未加载
fourtrees将近 4 年前
Very impressive, comprehensive work. Seemingly accurate results for belladonna and xenon :)
评论 #27895128 未加载
jakearmitage将近 4 年前
Other than DrugBank, are there any other providers of drug information databases?
评论 #27883539 未加载
评论 #27895159 未加载
1MachineElf将近 4 年前
Are you Pizzicato, the famous Russian beat boxer?
Donckele将近 4 年前
The system is not working. You should always double check before posting on HN that your system is working and&#x2F;or can handle moderate levels of interaction.<p>EDIT: seems to be up now.
评论 #27879973 未加载