Coder Social home page Coder Social logo

silicium14 / peertube_index Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 0.0 1.24 MB

A centralized search engine for PeerTube videos

Home Page: https://peertube-index.net

License: MIT License

Dockerfile 0.20% Elixir 82.94% Shell 0.47% HTML 14.95% CSS 1.43%
elixir peertube elasticsearch elixir-lang

peertube_index's Introduction

PeerTube Index

PeerTube Index is a centralized search engine for PeerTube videos. It crawls PeerTube instances, index their videos, and discovers new instances. It is hosted at peertube-index.net.

This project is not affiliated to Framasoft, the maintainer of the PeerTube software.

How it works / what it does

  • Scans instances if they have not been scanned for more than 24 hours
  • Respects robots.txt directives
  • Discovers new instances by adding the followed and following instances of a known instance being scanned
  • Periodically updates its list of known instances from thefederation.info and instances.joinpeertube.org
  • No scanning retry: at the first scanning error (network error, HTTP error, parsing error...) the instance is marked as failed for the next 24h

State of the project

I will stop maintaining PeerTube Index, it will be retired soon.

Framasoft, the maintainer of PeerTube, now has an official solution for global search on the PeerTube federation: Sepia Search at https://search.joinpeertube.org/. People can use it instead of PeerTube Index. It is open source and people can use it to setup their own search engine with their own rules if they want. It does not automatically discovers new instances as PeerTube index does (by fetching following and followed instances).

peertube_index's People

Contributors

silicium14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

peertube_index's Issues

Search API

Hi, thanks for this useful project!

Please document a search API, so that applications like Thorium can use PeerTube Index for search.

[Feature Request] a NSFW/sensitive check box on the search page

Currently this tool does not return results for content marked sensitive. This is a good precaution, but a user may want sensitive results returned.

I suggest allowing users to check whether they want them returned using a simple check box.

Additionally if issue #2 is implemented it would be a good idea to include this functionality in the API.

Use of Google Fonts expose private data

Currently google fonts are beeing included with this line:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter&display=swap">

So each and every call of the webpage is treacked by Google - for an audience which may choose Peertube over Youtube for not beeing tracked.

I kindly ask for removing this anti-feature. The site could work well just with standard fonts, for a pure search the font layout may be mostly irrelevant. Or the fonts could be hosted by oneself, so that not Google is called.

More info about hosting fonts is here:
https://stackoverflow.com/questions/8966740/how-to-host-google-web-fonts-on-my-own-server

Rate Limit for Crawler

Hi,

I noticed today that I was getting a lot of requests on peertube.social, for URLs like /api/v1/videos/video-id. At times I was getting around 50 requests per second, and this caused a ton of CPU usage. Now I dont know if this was you, but it definitely looked like a crawl and apparently your site started on the same day, so it seems likely.

The problem is gone for now, probably because the crawler has finished its backlog. But you should definitely add a rate limit to your crawler if you havent already. I suggest something like 1 request per second at most.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.