spoofagent 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +9 -0
  3. data/README.md +84 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a9007c7093bee86853c3ca576088bdd9f38ca6e12ea5e76babb5cdd940fecdb
4
- data.tar.gz: 8593dcde3b81b089321043f9c4fe4bc16cb8b6618cfad1f582498e9bdb563252
3
+ metadata.gz: a1f33240ab73ac71fb0ebad955db928ce50835d10674ad282be9ac251ecad55d
4
+ data.tar.gz: 3358205a28789ef223cb9d3ca4768d7238c5050259867edfeb124e49a6bb7281
5
5
  SHA512:
6
- metadata.gz: 8b4870d4ef8dd3e3f8768d894ce0078cae769a1c1cd31fa7ea910d6e16212f766b011468c65d48acce1a13b1dba5804814e4c3882a8685dea3701cada89d0648
7
- data.tar.gz: 4284887abc1334f2df60f70a408e10b0e7ccc624b59b23adc8a53502515f7d02567110615ab4b6759a4444215a4c3eb5423f4e255f0165fd605712cf46778d8c
6
+ metadata.gz: 1ef6b52a477740dd73eb3ad076654b6728d9cdb8035f892b20603cd7524e6288b2bed56f4d88b36eef6cc2cf24a7c22c6545624ff1dd7f7b1803d252e880e423
7
+ data.tar.gz: 70957685447890be36f09d3f1c3eb9fce2a9394178bb777bc3740b24e0e59db794a404815a28d43292fa037d7655b98a8dfeed7916215bbd8e79ec8b855f4e5d
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 VampXD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # User Agent Generator
2
+
3
+ A simple library to generate fake user agents for various platforms and browsers. This library can be useful for web scraping, testing, and simulating user behavior in web applications.
4
+
5
+ ## Features
6
+
7
+ - Generates random user agents for multiple platforms:
8
+ - Chrome
9
+ - Firefox
10
+ - Safari
11
+ - Microsoft Edge
12
+ - Internet Explorer
13
+ - Android
14
+ - iOS
15
+ - Linux
16
+ - Mac
17
+ - Windows
18
+ - Customizable version and build numbers
19
+ - Easy to use and integrate into your projects
20
+
21
+ ## Installation
22
+
23
+ You can install the package using pip:
24
+
25
+ ```bash
26
+ gem install spoofagent
27
+ ```
28
+
29
+ ## Usage
30
+ Here’s how to use the UserAgentGenerator class in your project:
31
+
32
+ ## Example
33
+ ```rb
34
+ # import library
35
+ require 'spoofagent'
36
+
37
+ # Create an instance of UserAgentGenerator
38
+ generator = UserAgentGenerator.new
39
+
40
+ # various platforms
41
+ chrome_ua = generator.generate_user_agent('chrome')
42
+ firefox_ua = generator.generate_user_agent('firefox')
43
+ safari_ua = generator.generate_user_agent('safari')
44
+ edge_ua = generator.generate_user_agent('edge')
45
+ ie_ua = generator.generate_user_agent('ie')
46
+ android_ua = generator.generate_user_agent('android')
47
+ ios_ua = generator.generate_user_agent('ios')
48
+ linux_ua = generator.generate_user_agent('linux')
49
+ mac_ua = generator.generate_user_agent('mac')
50
+ windows_ua = generator.generate_user_agent('windows')
51
+
52
+ # Displays the generated user agent
53
+ puts "Chrome User Agent: #{chrome_ua}"
54
+ puts "Firefox User Agent: #{firefox_ua}"
55
+ puts "Safari User Agent: #{safari_ua}"
56
+ puts "Edge User Agent: #{edge_ua}"
57
+ puts "Internet Explorer User Agent: #{ie_ua}"
58
+ puts "Android User Agent: #{android_ua}"
59
+ puts "iOS User Agent: #{ios_ua}"
60
+ puts "Linux User Agent: #{linux_ua}"
61
+ puts "Mac User Agent: #{mac_ua}"
62
+ puts "Windows User Agent: #{windows_ua}"
63
+ ```
64
+
65
+ ## Customizing User Agents
66
+ You can customize the version and build numbers when generating user agents:
67
+ ```rb
68
+ custom_ua = generator.generate_user_agent('chrome', version='89', build='1234')
69
+ puts "Custom Chrome User Agent:", #{custom_ua}
70
+ ```
71
+
72
+ ## Platform Options
73
+ The following platforms are supported:
74
+
75
+ - chrome
76
+ - firefox
77
+ - safari
78
+ - edge
79
+ - ie
80
+ - android
81
+ - ios
82
+ - linux
83
+ - mac
84
+ - windows
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spoofagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - VampXDH
@@ -17,6 +17,8 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - LICENSE
21
+ - README.md
20
22
  - lib/spoof.rb
21
23
  homepage: https://github.com/VampXDH/spoofagentrb
22
24
  licenses: