Comments (3)
I submitted a PR that does some downloading. It adds a 10s delay between requests. In my ~370 friends, I got 230 real profiles and ~140 copies of the CouchSurfing homepage. I just ran it as a script.
The CORS issue would be a headache to do this client side for sure. 🤔
from couchspinner.
Yeah, this would be fantastic! It's a real bummer files don't include at least names.
I actually started implementing it when first working on this, but quickly gave up since it became kinda complicated. There's some code in add/profile-fetching
branch:
https://github.com/simison/couchspinner/blob/6833f123a1f5fda8a057bd6af2bc8b6915511f9b/src/worker.js
- Since the app runs fully on client-side (it's hosted from Github-pages), you would need to use external service to do the fetching at server-side to overcome CORS issues. It's possible to run something like CorsAnywhere on Heroku just for this purpose.
- There are mitigations at CS side for this type of crawling tons of profiles. In the code you can see I tried to overcome that with
perimeterx-axios-interceptor
- Lots of profiles are still private so some of the profiles are still unreachable. Not end of the world of course. :-)
- Related to above, I didn't feel comfortable asking for username+pass, and do the authentication dance. Nobody should enter their credentials on some random website. 😅 Not feeling super strong about this so it would be fine.
Lastly, worth just writing CS folks if they would like to add names to export files. :-D It would be the right thing to do.
from couchspinner.
Lots of profiles are still private so some of the profiles are still unreachable.
Actually reading the code again, looks like name and image are always available in og-tags even for private profiles. So prolly not an issue. :-)
from couchspinner.
Related Issues (6)
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 couchspinner.