Skip to content
This repository was archived by the owner on Dec 14, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added twitter/Informe de Avance Twitter.pdf
Binary file not shown.
70 changes: 66 additions & 4 deletions twitter/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Twitter

Conditions of use for the api of extraction information .

Can:

• Develop applications that automatically transmit information in Tweets, while not violating the rules of automated Tweets.

• Publish creative campaigns that automatically respond to users who interact with your content.

• Develop solutions that respond to users automatically in Direct Messages.

• Try new things that help people (and that comply with our rules).

• Ensure that your application offers a good user experience and that it has a good performance, and verify that it continues to be so over time.

You can not:

• Breach these or other policies. Pay special attention to our rules on abusive practices and user privacy.

• Abuse the Twitter API or try to bypass speed limits.

• Send spam or import to users, or send them any type of unsolicited messages.

## Tweepy
[Tweepy](http://docs.tweepy.org/en/latest/) is an open source Python package that gives you a very convenient way to access the Twitter API with Python. Tweepy includes a set of classes and methods that represent the Twitter API models, and transparently handles various implementation details.

Expand Down Expand Up @@ -36,11 +58,51 @@ In the Keys and tokens tab we generate the credentials we need:
## Flask
[Flask](http://flask.palletsprojects.com/en/1.1.x/) is a minimalist framework written in Python that allows you to create web applications quickly and with a minimum number of lines of code.

To install Flask we use the following command:
Steps to installs Flask.

```
pip3 install flask
```
To install flask you need to install some specifics requirements:

Virtual environments
Use a virtual environment to manage the dependencies for your project, both in development and in production.

What problem does a virtual environment solve? The more Python projects you have, the more likely it is that you need to work with different versions of Python libraries, or even Python itself. Newer versions of libraries for one project can break compatibility in another project.

Virtual environments are independent groups of Python libraries, one for each project. Packages installed for one project will not affect other projects or the operating system’s packages.

Python 3 comes bundled with the venv module to create virtual environments. If you’re using a modern version of Python, you can continue on to the next section.

If you’re using Python 2, see Install virtualenv first.

Create an environment
Create a project folder and a venv folder within:

$ mkdir myproject
$ cd myproject
$ python3 -m venv venv
On Windows:

$ py -3 -m venv venv
If you needed to install virtualenv because you are using Python 2, use the following command instead:

$ python2 -m virtualenv venv
On Windows:

> \Python27\Scripts\virtualenv.exe venv
Activate the environment
Before you work on your project, activate the corresponding environment:

$ . venv/bin/activate
On Windows:

> venv\Scripts\activate
Your shell prompt will change to show the name of the activated environment.

Install Flask
Within the activated environment, use the following command to install Flask:

$ pip install Flask

Flask is now installed.

### Routes
These are the available routes:
Expand Down