Skip to content

Instantly share code, notes, and snippets.

@belkarx
Created August 19, 2024 06:01
Show Gist options
  • Select an option

  • Save belkarx/39dcc2256ce777d7f5022875b92a34e3 to your computer and use it in GitHub Desktop.

Select an option

Save belkarx/39dcc2256ce777d7f5022875b92a34e3 to your computer and use it in GitHub Desktop.
international search results
Here's a summary of the snippets for each country in bullet points:
English:
Tea polyphenols can enhance the anticancer activity of chemotherapy drugs
Chemotherapy drugs can lower blood cell count, increasing risk of anemia and neutropenia
Side effects of chemotherapy include gastrointestinal issues
Research is being done on preventing "chemo brain"
Some chemotherapy drugs may increase hearing loss in adults
Immunotherapy is becoming more widely used to treat cancer
Marijuana may affect cancer symptoms and treatment
Alcohol consumption increases cancer risk
Some chemotherapy drugs can cause long-term side effects
Chinese:
Healthy eating during cancer treatment is important
Chemotherapy and radiation therapy can affect nutrient absorption
Different treatment options for floor of mouth cancer are discussed
Allicin may enhance the sensitivity of gastric cancer cells to chemotherapy drugs
Treatment options for stage 4 prostate cancer are outlined
Metabolic abnormalities in acute myeloid leukemia cells and targeted therapies are discussed
Research on capsaicin's effect on preventing and treating digestive system tumors is progressing
Thymosin is used in cancer treatment to enhance immune system function
AMD3100 can increase the sensitivity of leukemia cells to chemotherapy drugs
Autophagy may be related to tumor drug resistance
German:
Different substances are used in chemotherapy, with varying effectiveness
Chemotherapy can be combined with radiation therapy for increased effectiveness
Mitotane can improve the effectiveness of chemotherapy drugs in adrenocortical carcinoma
The effectiveness of chemotherapy varies for different types of cancer
Adriamycin can have additive myelosuppressive effects when combined with similar substances
Research is being done on new drugs that can enhance the effect of conventional chemotherapy
Chemotherapy can be used in combination with radiation therapy to improve its effect in brain tumors
Japanese:
Combining different anticancer drugs can increase effectiveness
Chemotherapy is a systemic treatment that affects cancer cells throughout the body
The duration of drug therapy varies depending on the type of cancer and treatment goals
Companion diagnostics are used to enhance the effectiveness and safety of specific drugs
Cisplatin is a widely used anticancer drug that can cause kidney damage
Postoperative chemotherapy aims to eliminate potential micrometastases
The effectiveness of treatment is monitored through regular imaging and blood tests
Hormone therapy and molecular targeted drugs may be used in combination with chemotherapy for breast cancer
Chemotherapy combined with radiation therapy can enhance treatment effectiveness
Antibody-drug conjugates use chemotherapy drugs as payloads to target cancer cells
Finnish:
PD-1 antibodies are used in melanoma treatment
Certain foods can boost the immune system
Chemotherapy is used to treat certain types of cancer
Iron supplements can increase the effectiveness of erythropoietin treatment
Radiation therapy can be combined with chemotherapy and hormone therapy
Palliative care and advance care planning improve patient and family outcomes
Dutch:
Chemotherapy is not effective for slow-growing neuroendocrine tumors
Monoclonal antibodies can be combined with chemotherapy to increase effectiveness
Fasting may improve the effect of chemotherapy, but evidence is insufficient
The choice of chemotherapy drugs depends on the type of cancer
Some drugs can enhance the sedative effect of other medications
Pegfilgrastim injections stimulate bone marrow to produce white blood cells after chemotherapy
@belkarx
Copy link
Author

belkarx commented Aug 19, 2024

script-searched "what substances increase the effectiveness of chemotherapy" in every language using Google and had claude format them into a bulleted list

@belkarx
Copy link
Author

belkarx commented Aug 19, 2024

from googleapiclient.discovery import build

def google_search(search_term, api_key, cse_id):
service = build("customsearch", "v1", developerKey=api_key)
res = service.cse().list(q=search_term, cx=cse_id).execute()
return res['items']

query = input("query: ")

language_codes = [
"en", # United States
"en", # United Kingdom
"zh-CN", # China
"de", # Germany
"en", # Singapore
"de", # Switzerland
"en", # Australia
"ja", # Japan
"fi", # Finland
"nl" # Netherlands
]

from deep_translator import GoogleTranslator

def translate_text(text, source_lang, target_lang):
try:
translator = GoogleTranslator(source=source_lang, target=target_lang)
translation = translator.translate(text)
return translation
except Exception as e:
return f"Translation error: {str(e)}"

r = {}
import json

for l in language_codes:
r[l] = []
print(f"Translating to {l}")
try:
translated_text = translate_text(query, "en", l)
except Exception as e:
print(f"Translation error: {str(e)}")
continue

results = google_search(translated_text, api_key, cse_id)
for result in results:
    #print(translate_text(result['link'], l, "en"), "\n---")
    #print(translate_text(result['title'], l, "en"), "\n---")
    #print(translate_text(result['snippet'], l, "en"), "\n---")
    #r[l] = {"link": result['link'], "title": result['title'], "snippet": result['snippet']}
    r[l].append({"link": result['link'], "title": result['title'], "snippet": result['snippet']})

with open("results_intersearch.json", "w") as f:
json.dump(r, f)

@belkarx
Copy link
Author

belkarx commented Aug 19, 2024

results:
searching in a bunch of different languages is useful actually, and germany, china, america, and oddly the dutch win this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment