Torrenting in google drive

Making questions way too easy nowadays, but a few questions are just questions, all questions has answers, but thing is to determine does it contain any solution, does it have a solution or it’s just a hopeless question. anyway, let me answer the way it should get done.

It’s not that easy or possible the way you think of it is. first of all, learn what is torrenting.

What Is Torrenting? (Torrent Definition)

Torrenting is a kind of peer-to-peer (P2P) file-sharing technology where a number of users can connect and share their files rather than being dependent on a single website or source for downloading files.

A user can not only download the file from the direct source but also from other users of the same torrent, facilitating a smoother transfer among users.

Each peer acts as a mini-server, which significantly reduces the network load.

It’s easy to search a file of your choice on the internet and download it through a torrent. However, the torrenting experience might improve to a surprising extent once the users get to know the techniques that take place every time a file is downloaded.

How Torrent Works

To understand the peer-to-peer process, it’s essential to know a few terms.

  • Peers: All users involved in sharing files through torrent P2P sharing. They are said to be peers as long as they keep sharing files on the network.
  • Seeders: A user who is downloading a file from a torrent and simultaneously uploading it to be used by other users.
  • Indexers: Websites that work as a search engine for the files and content to be downloaded through a torrent. Some famous indexers are Piratebay, Extratorrent or Torrentz, which are widely used.
  • Trackers: Servers that act as bridges between the peers. They direct the packets from user to user and help find peers on the network for a particular download.
  • Swarms: A number of peers downloading or uploading the same torrent files.
  • Leechers: The peers who download a torrent file but restrict uploading from their server or stop the torrent as soon as their file is downloaded to prevent the upload. Their intention is not to help the other peers download.
  • BitTorrent Client: One of the main requirements for torrenting is the presence of a client. Usually, uTorrent enables the process by combining the fragments from many seeds, assembling them and managing the download.

Now the answer to your question Create torrent from Google drive? that means seeding torrent from Google drive.

As for Google, Note that google drive has several limitations: request limit, download limit, quota limit and CORS, and Google hasn’t announced that it supports CORS so far. Moral, hopeless question.

Your Drive seed a torrent to get it transferred is that for real?. :shushing_face:

It would be cool if you could construct your own WebSeed with custom get mechanism.

Everything isn’t as simple as a GET request with range header

Some require credentials, you might be dealing with streams coming from a socket (Google FireStore) or other storage that doesn’t play nice with easy hotlinking. Perhaps the file isn’t as well mapped as a file hierarchy maybe the file is only accessible by a hash/id identifier, you could build something that uses ftp, afp, smb protocol.

Something like this

peer = new WebSeed({
  async get(pieceIndex, offset, length) {
    const blob_or_arraybufer = await getPiece(...args)
    return blob_or_arraybufer
  }
  destroy() {
  }
}, torrent)

you could then implement a WebSeed using any cloud storage API

Or to make any hybrid torrent client to a WebSeed.

Furthermore, to create a torrent for the file to have it webseeded if hotlinked, then you have to pre-create the torrent with the file, Only if Google Drive doesn’t support CORS there’s nothing we can do, follow the resources…

Good Luck & Happy Learning! :+1:

7 Likes