Gravity
Gravity is a decentralized data collection platform powered by SN13 (Data Universe) on the Bittensor network.
Last updated
Gravity is a decentralized data collection platform powered by SN13 (Data Universe) on the Bittensor network.
Last updated
Choose GravityClient
for sync tasks. Use AsyncGravityClient
if async fits better.
Check for a complete working example of a data collection CLI you can use for your next big project or to plug right into your favorite data product.
📎 Supported Platforms
reddit
twitter
(X)
More platforms will be supported as subnet capabilities expand.
Each task gets registered on the network. Miners begin work right away. The task stays live for 7 days. After that, the dataset gets built automatically. You’ll get an email with a download link. Use any email you like.
Body
gravity_tasks
string
List of task objects. Each must include a topic
and a platform
(x
, reddit
, etc.)
name
string
Optional name for the Gravity task. Helpful for organizing jobs.
notification
string
List of notification configs. Supports type
, address
, and redirect_url
.
Response
If you wish to get further information about the crawlers, you can use the include_crawlers
flag or make separate GetCrawler()
calls since returning in bulk can be slow.
Body
gravity_task_id
string
The unique identifier of the Gravity task you want to inspect.
include_crawlers
bool
Whether to include details of the associated crawler jobs. Defaults to False
.
Response
No need to wait 7 days. You can request your dataset early. Add a notification to get alerted when it's ready.
Body
notification
string
A list of notification objects (e.g., email or webhook). Includes type
, address
, and redirect_url
.
crawler_id
The ID of the completed crawler job you want to convert into a dataset.
Response
Watch your dataset build with GetDataset()
. Once built, the task gets de-registered.
Use CancelDataset()
to stop a build. If it's done, that call will purge the dataset.