Comments (8)
You should probably just revert back to before these changes, then just do lots of testing before you push them again.
Right now, if I search something, I just get Internal Server Error
.
from araa-search.
Please revert these changes from the main
branch, and push them off to a seperate branch in the mean time until they are free of these bugs. You shouldn't just leave the project broken like this for an extended period of time.
from araa-search.
https://araa.extravi.dev/search?q=chatgpt&t=text
https://araa.extravi.dev/search?q=telegram&t=text
from araa-search.
It does that for some results, but not all. I was trying to update the proxy to scrape from MjjYud so I could get more results like video urls, etc. from Google Search and later add the image base64 next to the results.
from araa-search.
yeah i need to also idk how to fix this
from araa-search.
Here's a solution that stops the mismatched links issue:
# loop through each div
for div in result_divs:
# retrieve links
if not div.find("div", class_="cUnQKe"):
link = div.find("a")
if link is not None:
link = link.get("href")
else:
continue
# retrieve title
title = div.find("h3")
if title is not None:
title = title.text.strip()
else:
continue
hrefs.append(link)
titles.append(title)
# retrieve description
desc = div.find("div", {"class": "VwiC3b"})
if desc is not None:
descriptions.append(desc.text.strip())
else:
descriptions.append("No description available.")
This only appends the link and title if neither are empty.
The issue is caused by there being no else case for if the title or link is empty.
So the title may be there, and so it gets appended, but the link isn't, so that doesn't get appended.
However, this doesn't fix some other issues, like when it doesn't return any results. For example, if I search 'macbeth', only the wikipedia snippet is shown, which shows that there are results, but the current scraper isn't picking them up.
from araa-search.
Also, this doesn't solve the issue where some links just say 'Images', rather than their actual title.
from araa-search.
i went back to the older version for now
from araa-search.
Related Issues (20)
- suggest improvements and give me ideas pls HOT 13
- Issue/question: what happened to tailsx HOT 2
- Stop using cloudflare for the official instance? HOT 4
- Main instance sometimes doesn't show any result HOT 3
- reCAPTCHA proxy HOT 50
- Plans for adding new search engines HOT 21
- Cloudflare error 523: origin is unreachable on the main instance. HOT 2
- Changes to how requests are made. HOT 46
- Docker domain env HOT 6
- If you're having issues after the update, clear cookies for Araa, and it will be fixed.
- image search does not work with post request HOT 11
- Set default autocomplete to Google? HOT 9
- update to community-made themes HOT 1
- Using httpx to send more requests at once with httpx sessions to further improve speeds and performance HOT 18
- I'm going to replace python requests sessions with httpx sessions so I can use http/2 to improve speeds. This should also make things more scalable because I can send more requests at once if needed. HOT 30
- I am now hosting a YouTube privacy frontend, and the API may be used for video search to speed things up. HOT 12
- Searching Git Repositories HOT 4
- [Feature Request] Redirect to alternatives (ex. Invidious instead of YouTube) HOT 3
- Dates shown instead of description HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from araa-search.