![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
A scraper for Freecycle.
You can install the scraper via NPM or yarn.
npm install --save freecycle
Import freecycle
into your project to begin scraping. You can use the getPosts
method to retrieve latest posts from a specified Freecycle group.
const freecycle = require('freecycle')
const GROUP_NAME = 'CambridgeUK'
freecycle.getPosts(GROUP_NAME, (err, posts) => {
if (err) {
return console.err('Could not retrieve posts', err)
}
posts.forEach(post => {
console.log('Post: ', post.name)
})
})
The posts
array is an array of objects with the following string
fields:
{
name,
url,
location
}
More detail about each post can be retrieved using the getPostById
and getPostByURL
functions. Passing the url
field (from an array item returned by the getPosts
method) into getPostByURL
is the easiest way to retrieve further information about a post.
freecycle.getPostById(GROUP_NAME, '73086860', (err, post) => {
if (err) {
return console.err('Could not retrieve post details', err)
}
console.log('Post: ', post.title, post.description)
})
The post
object, returned by either getPostBy
function, contains the following string
fields:
{
id,
type,
title,
location,
date,
description,
image,
}
The image
field is undefined
or the URL of the post image.
There is also a Group
object, available by importing freecycle/group
. This abstracts the notion of an individual Freecycle group and allows multiple to be queried independently.
const Group = require('freecycle/group')
const group = new Group('CambridgeUK')
group.getPosts((err, posts) => {
if (err) {
return console.error(err)
}
console.log(posts)
})
See the 'multi.js' example for more details.
MIT
FAQs
A scraper for Freecycle
The npm package freecycle receives a total of 1 weekly downloads. As such, freecycle popularity was classified as not popular.
We found that freecycle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.