Twarc

Latest version: v2.14.0

Safety actively analyzes 638430 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 22

1.1.2

Removed dead command `conversations` from the code and the documentation, since it was renamed to `replies`. Thanks to Leslie Jones for noticing the problem.

1.0.10

This is a patch release to fix a bug in hydration which was causing the hydration of a single tweet to fail (thanks toddstoffer).

It also includes a change so that hydration respects `--tweet_mode` when it is used to fetch tweets > 140 characters.

1.0.9

This release includes support for Twitter's new extended tweet functionality that is documented [here](https://dev.twitter.com/overview/api/upcoming-changes-to-tweets). If you collect data from the streaming API you need to know that the text of the tweet now shows up in a new location. The results from searches should still look like what you are used to unless you want to choose to use the `--tweet_mode extended` option which will give you the extended tweet information.

If this sounds confusing that's unfortunately because it is. The aim is to have twarc mirror Twitter's default behavior unless it is told to do otherwise with `--tweet_mode` which is also exposed on the constructor for `twarc.Twarc`.

1.0.8

This release updates the behavior of `Twarc.follower_ids` and `Twarc.friend_ids` to take a `user_id` as well as a `screen_name`.

It also includes an update to the configuration loading that makes programmatic use of Twarc easier. Now instead of your program needing to deal with figuring out what keys to give to `twarc.Twarc`, the constructor will attempt to load them from the environment or from the default config file `$HOME/.twarc`. So all you need to do is:

python
import twarc

t = twarc.Twarc()
for tweet in t.search("obama"):
print(tweet)


This release also includes a new utility `utils/foaf.py` which generates a friend-of-a-friend network for a given seed user. It expresses the network as a tuple of `(user1_id, user2_id)` where `user1_id` is the user id for a user (natch) and `user2_id` is the user id for their friend (someone they follow). I'm sorry if your hopes were up for some kind of RDF graph... If they aren't completely dashed here's how you can use it:

utils/foaf.py danbri > danbri.csv

Perhaps expressing this with output similar to `utils/network.py` could be useful at some point, but this satisfied the requirements of the person (/me waves to [Ernesto](https://twitter.com/ecalvo68)) who needed the data to work with in R.

1.0.7

This release includes a small change to the setup so that installations on Windows work correctly again. Thanks yshussain!

1.0.6

The `replies` command will now traverse up the conversation tree when used with the `--recursive` option. It will also follow quotes of other tweets.

Also included in this release are two new utilities:
- `network.py` - reads a set of tweets and generates gexf (for Gephi), dot (for GraphViz) and a html+d3 network visualization
- `remove_limit.py` - a utility to remove warnings from a JSON file, if you happened to run with `--warnings` and decided that you didn't want the warnings after all. Thanks to rubeot for that.

Page 18 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.