tempsms22 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 10a9863d8b0de9dafe30552dcf76150f734a7bd213086c2c0fd790e0c431468e
4
+ data.tar.gz: c48457528bab5b22273f1995a3ac3e77d686bbf20320f6048856226ce4da9f85
5
+ SHA512:
6
+ metadata.gz: fcb06c6470c236e06a682d777fd62be70434672994e4b3159b9111724fabcd82d92c9cc023b55fff2be9f96878e6915c4fe1a7fbe2e12807b4710406a39a1f26
7
+ data.tar.gz: 36608139430252834005dbdb6946ce588167853f0d0eb970cec647e6952b3ab5f81ca5e59d040a72872d10c3c3cb377f83b8af0bb03572d48a2bb8280fb78bbe
checksums.yaml.gz.sig ADDED
Binary file
data/lib/tempsms22.rb ADDED
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: tempsms22.rb
4
+
5
+ # description: Scrapes the temporary SMS number from receive-smss.com.
6
+
7
+ require 'nokorexi'
8
+
9
+
10
+ class TempSMS22
11
+
12
+ attr_reader :number
13
+
14
+ def initialize()
15
+ @url = 'https://receive-smss.com/'
16
+ get_smsnum()
17
+ end
18
+
19
+ def read()
20
+
21
+ url = @url + 'sms/' + @number + '/'
22
+ doc = Nokorexi.new(url).to_doc
23
+ table = doc.root.element('//table')
24
+
25
+ a = table.xpath('tbody/tr').map do |x|
26
+ x.xpath('td').map {|y| y.plaintext }
27
+ end
28
+
29
+ a.map {|x| %i(from text date).zip(x).to_h }
30
+
31
+ end
32
+
33
+ private
34
+
35
+ def get_smsnum()
36
+
37
+ doc = Nokorexi.new(@url).to_doc
38
+
39
+ a = doc.root.xpath('//a[@class="number-boxes1-item-button"]').map do |x|
40
+ x.attributes[:href]
41
+ end
42
+
43
+ @number = a.first[/\d+/]
44
+ end
45
+
46
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tempsms22
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
+ YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwNTI3MTA1NDU4WhcN
15
+ MjMwNTI3MTA1NDU4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
+ cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDdvv+T
17
+ j1FmUrOWHsgWShYJGof7m2PRbiLQS+GsKvd1mGpSyOFxrr+GXkP4kqE4n1sJiOH7
18
+ q5MR9t5l8cK8adk9LJZCPgJ/DsCrPJecbIyvpeL/0e+PJzEen44cCbejG2gN8T1R
19
+ OjsfWDd0W7jpOY4I0Rj0YScHKHUY4gAyeYgpTviaQWZO/f9FMME26HnETFUlqmRw
20
+ pxQFjq9JqO0lzdYZXJvHq59gXpCl8Wwgp17P30QBY9gPtqaPl77eHP39Bgw96uu8
21
+ 6Ms7R4qx70Rj6SYa4Ps018UVvopH9MA01zWbjPTyj7aaI30Qjk0kNNXzlih+3KLJ
22
+ AAsnxYgM4DmSArBYP4s7IjpVEDAj1dwtDirMMJggL4IjLMu1owLSiqu4pq/LeA0l
23
+ QLOnJWQMzkczcaP5vO/fXHVLsVTGgR0Wtrf9WOWAeYeL/I3kKBrQF3sJpjzQuCPE
24
+ jCVCjRxqiKFRnAnLhsf4Ufmxplq2jKT/8XlWX03tLNWp3l9/FDovYS5WSgMCAwEA
25
+ AaOBijCBhzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU6FaaHOFy
26
+ r9VO1p1ghDRHoWDLl+wwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEAjVT9faJxwiV3UEEQdfFjA3Mv2jtVxLW2WYDyWW+L
29
+ kvesU/+MMHvI80B/Ey9ue7GTsT3BdklhSlNt+wT8FP1v/YhqJTt6dtmHoBljAoMZ
30
+ x4W3I4fRhmTEPP0RxNT5/rKCOyxa7KRmf2zBto8Wjby5Z0FbvTBy9DcBtvVw+IIW
31
+ vuS9/CU0Lv1nSQC4w80DCxgXppdrAgNVGs+VkBNNVNru/6MY0UujVJR5bXTVTbAn
32
+ JOA5uO9N61b3u1DagC8iwPjnXXqTEKB9MQuVizzTlfj7Yz0C6w3W5OoF9D5yB3bh
33
+ GqZLz21Vh9UzXuX6C8lrucIfXM72WAAXbw2/DK/yDjLfIRNmNoSSrEZDEgG1BDAS
34
+ BhNavnyF4LdxBJSqEKIgEgitVnB2e9vHtno2hroMRf8PL3gMUUkdQSwS59NNj5Bp
35
+ ztXMxbpG+JjUz/fW9/Hgk0gp01NgNz0mgAvQ/T1kKnXzjCX/emLM/BELrgG+A50g
36
+ DiofcFRVJjgBmAXWh6f6wfj9
37
+ -----END CERTIFICATE-----
38
+ date: 2022-05-27 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: nokorexi
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.7'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 0.7.0
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '0.7'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 0.7.0
60
+ description:
61
+ email: digital.robertson@gmail.com
62
+ executables: []
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - lib/tempsms22.rb
67
+ homepage: https://github.com/jrobertson/tempsms22
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.2.22
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Scrapes the temporary SMS number from receive-smss.com.
90
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ =�$�$���EK�&��O�A=�m:dc�T�H.����:]�����W�<
2
+ ��\�~Zȫ;����E�L�T�D�L �I��j+GA���!����`:�������O��lNx �~=c����]2]�:O�[CD���
3
+ ^�C�s�����zui�L Q,Mמ�>(���.�8�z,�ւ�(�v�r�}ܾ�Z,G�Z��ı�b��y�C3�|!�q9�Ŷ�'���G���\!e����|�߶/:�uVAy'��b4�~oF8^���`#�A��4?��P�;�x�>��eGwQĊ�c''=5